fix tests
This commit is contained in:
@@ -272,7 +272,6 @@ def get_workout(user,nkid):
|
||||
|
||||
response = requests.get(url,headers=headers,params=params)
|
||||
|
||||
|
||||
if response.status_code != 200:
|
||||
# error handling and logging
|
||||
return {},pd.DataFrame()
|
||||
@@ -293,6 +292,7 @@ def get_workout(user,nkid):
|
||||
before = before+timedelta(days=1)
|
||||
before = str(int(before.timestamp())*1000)
|
||||
after = str(int(after.timestamp())*1000)
|
||||
print(after)
|
||||
|
||||
|
||||
url = NK_API_LOCATION+"api/v1/sessions/"
|
||||
@@ -309,6 +309,7 @@ def get_workout(user,nkid):
|
||||
|
||||
jsondata = response.json()
|
||||
workoutdata = {}
|
||||
|
||||
for w in jsondata:
|
||||
if str(w['id']) == str(nkid):
|
||||
workoutdata = w
|
||||
|
||||
Reference in New Issue
Block a user