extra logging and fixing some bugs
This commit is contained in:
@@ -3412,8 +3412,11 @@ def handle_nk_async_workout(alldata, userid, nktoken, nkid, delaysec, defaulttim
|
||||
return 0
|
||||
|
||||
jsonData = response.json()
|
||||
strokeData = jsonData[str(nkid)]
|
||||
|
||||
try:
|
||||
strokeData = jsonData[str(nkid)]
|
||||
except KeyError:
|
||||
dologging('nklog.log','Could not find strokeData')
|
||||
return 0
|
||||
|
||||
seatNumber = 1
|
||||
try:
|
||||
@@ -3717,6 +3720,7 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec,
|
||||
dologging('c2_import.log',
|
||||
'Upload API returned status code {code}'.format(
|
||||
code=response.status_code))
|
||||
dologging('c2_import.log',json.dumps(response.data))
|
||||
return 0
|
||||
|
||||
workoutid = response.json()['id']
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user