From 29a39cb63375a3e833a2833de32321c97f3d6ee0 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Wed, 24 Jan 2024 19:22:08 +0530 Subject: [PATCH] fix: database - timestamp --- database/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/main.py b/database/main.py index 54c2ada..c4cf177 100644 --- a/database/main.py +++ b/database/main.py @@ -48,7 +48,7 @@ def get_latest_token(): 'access_token': latest_token.access_token, 'refresh_token': latest_token.refresh_token, 'expiration_seconds': latest_token.expiration_seconds, - 'timestamp': latest_token.timestamp.isoformat() + 'timestamp': int(latest_token.timestamp.timestamp()) } return jsonify({'token': token_info}), 200 else: