Spaces:
Sleeping
Sleeping
vtrv.vls
commited on
Commit
·
f82651c
1
Parent(s):
766dff5
API test
Browse files
utils.py
CHANGED
@@ -58,6 +58,8 @@ def generate(content='Привет!', auth_file=None):
|
|
58 |
|
59 |
with open(auth_file) as f:
|
60 |
auth_token = json.load(f)
|
|
|
|
|
61 |
|
62 |
if datetime.fromtimestamp(auth_token['expires_at']/1000) <= datetime.now() - timedelta(seconds=60):
|
63 |
gen_auth_token()
|
|
|
58 |
|
59 |
with open(auth_file) as f:
|
60 |
auth_token = json.load(f)
|
61 |
+
|
62 |
+
print(auth_token)
|
63 |
|
64 |
if datetime.fromtimestamp(auth_token['expires_at']/1000) <= datetime.now() - timedelta(seconds=60):
|
65 |
gen_auth_token()
|