This commit is contained in:
Swapnil 2024-01-30 21:15:57 +05:30
parent 91ac98a60b
commit f34b85d79f
Signed by: swapnil
GPG Key ID: 58029C48BB100574
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
<!-- Take readiwse api key input -->
<form action="/readwise" method="POST">
<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">
</form>

View File

@ -60,7 +60,7 @@ def get_token_by_id(id):
'email': token.email,
'access_token': token.access_token,
'refresh_token': token.refresh_token,
'expiration_seconds': token.expiration_seconds,
'expiration_seconds': int(token.expiration_seconds),
'readwise_api_key': token.readwise_api_key,
'active': token.active,
'timestamp': int(token.timestamp.timestamp())