formated section

This commit is contained in:
Shailaja Kumari 2024-02-14 18:12:32 +05:30
parent cc2357622b
commit 5a5d72aadc
Signed by: shailaja
GPG Key ID: 81C942771BB69898
1 changed files with 5 additions and 3 deletions

View File

@ -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()