Separate services - app, db, and job #1
|
@ -3,4 +3,6 @@ CLIENT_SECRET=
|
||||||
REDIRECT_URI=
|
REDIRECT_URI=
|
||||||
OPTIONAL_SCOPES=
|
OPTIONAL_SCOPES=
|
||||||
DATABASE_URL=
|
DATABASE_URL=
|
||||||
|
|
||||||
|
# generated by `openssl rand -base64 32` - used to encrypt session
|
||||||
APP_SECRET_KEY=
|
APP_SECRET_KEY=
|
|
@ -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_info=user_info,
|
return render_template('home.html', user_login=user_info.login, user_email=user_info.email, # for inoreader it's userName
|
||||||
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)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<title>Inoreader To Readwise</title>
|
<title>Inoreader To Readwise</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Logged In as {{ user_info.login }}({{user_info.name}})</h1>
|
<h1>Logged In as {{ user_login }} - {{ user_email }}</h1>
|
||||||
|
|
||||||
<!-- show last synced and next synced time -->
|
<!-- show last synced and next synced time -->
|
||||||
<p>Last Synced: {{ last_synced }}</p>
|
<p>Last Synced: {{ last_synced }}</p>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user