From 97c3354de87f4627947a9eb2c4218cde8947f53b Mon Sep 17 00:00:00 2001 From: Swapnil Date: Tue, 30 Jan 2024 21:55:47 +0530 Subject: [PATCH] app: minor fixes --- app/main.py | 2 +- app/templates/home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }}