Private
Public Access
1
0

fix tests

This commit is contained in:
Sander Roosendaal
2021-04-18 12:38:22 +02:00
parent b6b9f29a70
commit 2deb4fcbe3
3 changed files with 5 additions and 2 deletions

View File

@@ -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