import tasks c2 and rp3 updated
This commit is contained in:
@@ -3354,8 +3354,8 @@ def handle_rp3_async_workout(userid, rp3token, rp3id, startdatetime, max_attempt
|
|||||||
'secret': UPLOAD_SERVICE_SECRET,
|
'secret': UPLOAD_SERVICE_SECRET,
|
||||||
'user': userid,
|
'user': userid,
|
||||||
'file': filename,
|
'file': filename,
|
||||||
'workouttype': 'dynamic',
|
'workouttype': 'rower',
|
||||||
'boattype': '1x',
|
'boattype': 'rp3',
|
||||||
'rp3id': int(rp3id),
|
'rp3id': int(rp3id),
|
||||||
'startdatetime': startdatetime,
|
'startdatetime': startdatetime,
|
||||||
'timezone': timezone,
|
'timezone': timezone,
|
||||||
@@ -3552,7 +3552,12 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec,
|
|||||||
# rest_time = 0
|
# rest_time = 0
|
||||||
distance = distance+rest_distance
|
distance = distance+rest_distance
|
||||||
c2id = data['id']
|
c2id = data['id']
|
||||||
workouttype = data['type']
|
if data['type'] in ['rower','dynamic','slides']:
|
||||||
|
workouttype = 'rower'
|
||||||
|
boattype = data['type']
|
||||||
|
else:
|
||||||
|
workouttype = data['type']
|
||||||
|
boattype = '1x'
|
||||||
# verified = data['verified']
|
# verified = data['verified']
|
||||||
|
|
||||||
# weightclass = data['weight_class']
|
# weightclass = data['weight_class']
|
||||||
@@ -3696,7 +3701,7 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec,
|
|||||||
'file': csvfilename,
|
'file': csvfilename,
|
||||||
'title': title,
|
'title': title,
|
||||||
'workouttype': workouttype,
|
'workouttype': workouttype,
|
||||||
'boattype': '1x',
|
'boattype': boattype,
|
||||||
'c2id': c2id,
|
'c2id': c2id,
|
||||||
'startdatetime': startdatetime.isoformat(),
|
'startdatetime': startdatetime.isoformat(),
|
||||||
'timezone': str(timezone)
|
'timezone': str(timezone)
|
||||||
|
|||||||
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