From be4500796cdb16fb0a33d88c22e1b44378cf3559 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Tue, 30 Jan 2024 23:06:16 +0530 Subject: [PATCH] app: fix None readwise_api_key --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 3b0ff7a..5d0c625 100644 --- a/app/main.py +++ b/app/main.py @@ -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