Separate services - app, db, and job #1
|
@ -16,7 +16,7 @@
|
||||||
<!-- Take readiwse api key input -->
|
<!-- Take readiwse api key input -->
|
||||||
<form action="/readwise" method="POST">
|
<form action="/readwise" method="POST">
|
||||||
<label for="api_key">Readwise API Key</label>
|
<label for="api_key">Readwise API Key</label>
|
||||||
<input type="text" name="readwise_api_key" id="api_key", value="{{ readwise_api_key }}">
|
<input type="text" name="readwise_api_key" id="api_key", value="{{ readwise_api_key }}" required>
|
||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ def get_token_by_id(id):
|
||||||
'email': token.email,
|
'email': token.email,
|
||||||
'access_token': token.access_token,
|
'access_token': token.access_token,
|
||||||
'refresh_token': token.refresh_token,
|
'refresh_token': token.refresh_token,
|
||||||
'expiration_seconds': token.expiration_seconds,
|
'expiration_seconds': int(token.expiration_seconds),
|
||||||
'readwise_api_key': token.readwise_api_key,
|
'readwise_api_key': token.readwise_api_key,
|
||||||
'active': token.active,
|
'active': token.active,
|
||||||
'timestamp': int(token.timestamp.timestamp())
|
'timestamp': int(token.timestamp.timestamp())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user