app: minor fixes

This commit is contained in:
Swapnil 2024-01-30 21:55:47 +05:30
parent e3ec9e7915
commit 84fd7d46d5
Signed by: swapnil
GPG Key ID: 58029C48BB100574
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ def home():
last_synced = datetime.fromtimestamp(token.get('timestamp')).strftime('%Y-%m-%d %H:%M:%S')
next_sync = datetime.fromtimestamp(token.get('timestamp') + 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', ''),
last_synced=last_synced, next_sync=next_sync)
# Generate a CSRF protection string

View File

@ -10,7 +10,7 @@
<!-- show last synced and next synced time -->
<p>Last Synced: {{ last_synced }}</p>
<p>Next Synced: {{ next_synced }}</p>
<p>Next Sync: {{ next_sync }}</p>
<br>
<!-- Take readiwse api key input -->