From ff8a34afd57b78f679e9ca2b245e562cf7aa5d08 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Thu, 1 Feb 2024 16:29:39 +0530 Subject: [PATCH] app: fix user_info error --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index cda9531..05e7c37 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_login=user_info.login, user_email=user_info.email, # for inoreader it's userName + return render_template('home.html', user_login=user_info.get('login'), user_email=user_info.get('email'), # for inoreader it's userName and userEmail readwise_api_key=token.get('readwise_api_key') or '', last_synced=last_synced, next_sync=next_sync)