diff --git a/app/main.py b/app/main.py index 2d8fb49..808fa0a 100644 --- a/app/main.py +++ b/app/main.py @@ -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 diff --git a/app/templates/home.html b/app/templates/home.html index 1655831..6b35ba3 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -10,7 +10,7 @@

Last Synced: {{ last_synced }}

-

Next Synced: {{ next_synced }}

+

Next Sync: {{ next_sync }}