forked from PeterSurda/inoreader2readwise
app: fix user_info error
This commit is contained in:
parent
dd850ca6e1
commit
68869249bc
|
@ -39,7 +39,7 @@ 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.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 '',
|
readwise_api_key=token.get('readwise_api_key') or '',
|
||||||
last_synced=last_synced, next_sync=next_sync)
|
last_synced=last_synced, next_sync=next_sync)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user