app: fix None readwise_api_key
This commit is contained in:
parent
19af4bff34
commit
46e4f8e722
|
@ -39,7 +39,7 @@ def home():
|
||||||
last_synced = datetime.fromtimestamp(token.get('updated_at')).strftime('%Y-%m-%d %H:%M:%S')
|
last_synced = datetime.fromtimestamp(token.get('updated_at')).strftime('%Y-%m-%d %H:%M:%S')
|
||||||
next_sync = datetime.fromtimestamp(token.get('updated_at') + token.get('expiration_seconds')).strftime('%Y-%m-%d %H:%M:%S')
|
next_sync = datetime.fromtimestamp(token.get('updated_at') + token.get('expiration_seconds')).strftime('%Y-%m-%d %H:%M:%S')
|
||||||
return render_template('home.html', user_info=user_info,
|
return render_template('home.html', user_info=user_info,
|
||||||
readwise_api_key=token.get('readwise_api_key', ''),
|
readwise_api_key=token.get('readwise_api_key') or '',
|
||||||
last_synced=last_synced, next_sync=next_sync)
|
last_synced=last_synced, next_sync=next_sync)
|
||||||
|
|
||||||
# Generate a CSRF protection string
|
# Generate a CSRF protection string
|
||||||
|
|
Loading…
Reference in New Issue
Block a user