From 5a5d72aadcc00b8e93a299b3ec9481bc3baa26a2 Mon Sep 17 00:00:00 2001 From: Shailaja kumari Date: Wed, 14 Feb 2024 18:12:32 +0530 Subject: [PATCH] formated section --- app/main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 1471104..17ff1b5 100644 --- a/app/main.py +++ b/app/main.py @@ -41,9 +41,11 @@ 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.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) + 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) # Generate a CSRF protection string session['csrf_protection_string'] = os.urandom(16).hex()