formated section
This commit is contained in:
parent
cc2357622b
commit
5a5d72aadc
|
@ -41,9 +41,11 @@ def home():
|
||||||
|
|
||||||
last_synced = datetime.fromtimestamp(token.get('updated_at')).strftime('%Y-%m-%d %H:%M:%S')
|
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')
|
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
|
return render_template('home.html',
|
||||||
readwise_api_key=token.get('readwise_api_key') or '',
|
user_login=user_info.get('login'),
|
||||||
last_synced=last_synced, next_sync=next_sync)
|
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
|
# Generate a CSRF protection string
|
||||||
session['csrf_protection_string'] = os.urandom(16).hex()
|
session['csrf_protection_string'] = os.urandom(16).hex()
|
||||||
|
|
Loading…
Reference in New Issue