app: fix None readwise_api_key

This commit is contained in:
Swapnil 2024-01-30 23:06:16 +05:30
parent 3d85fce4eb
commit be4500796c
Signed by: swapnil
GPG Key ID: 58029C48BB100574
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ def home():
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')
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)
# Generate a CSRF protection string