Update getting ts from _get_timestamp() (#33)
This commit is contained in:
parent
cc2d1f74fc
commit
9006434660
|
|
@ -49,6 +49,6 @@ class Client(object):
|
||||||
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
|
request_path = c.API_URL + c.SERVER_TIMESTAMP_URL
|
||||||
response = self.client.get(request_path)
|
response = self.client.get(request_path)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
return response.json()['ts']
|
return response.json()['data'][0]['ts']
|
||||||
else:
|
else:
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue