Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2021-10-14 12:49:19 +02:00
parent 4e116e7e03
commit 806d34b2d2
2 changed files with 41 additions and 17 deletions

View File

@@ -137,7 +137,8 @@ def get_rp3_workouts(rower,do_async=True): # pragma: no cover
if (res.status_code != 200):
return 0
dologging('rp3_import.log',res.json())
s = '{d}'.format(d=res.json())
dologging('rp3_import.log',s)
workouts_list = pd.json_normalize(res.json()['data']['workouts'])
try:
rp3ids = workouts_list['id'].values