Update getting ts from _get_timestamp() (#33)

This commit is contained in:
kkathena 2024-01-08 15:52:32 +08:00 committed by GitHub
parent cc2d1f74fc
commit 9006434660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -49,6 +49,6 @@ class Client(object):
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
response = self.client.get(request_path)
if response.status_code == 200:
return response.json()['ts']
return response.json()['data'][0]['ts']
else:
return ""