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,
|
||||
'user': userid,
|
||||
'file': filename,
|
||||
'workouttype': 'dynamic',
|
||||
'boattype': '1x',
|
||||
'workouttype': 'rower',
|
||||
'boattype': 'rp3',
|
||||
'rp3id': int(rp3id),
|
||||
'startdatetime': startdatetime,
|
||||
'timezone': timezone,
|
||||
@@ -3552,7 +3552,12 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec,
|
||||
# rest_time = 0
|
||||
distance = distance+rest_distance
|
||||
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']
|
||||
|
||||
# weightclass = data['weight_class']
|
||||
@@ -3696,7 +3701,7 @@ def handle_c2_async_workout(alldata, userid, c2token, c2id, delaysec,
|
||||
'file': csvfilename,
|
||||
'title': title,
|
||||
'workouttype': workouttype,
|
||||
'boattype': '1x',
|
||||
'boattype': boattype,
|
||||
'c2id': c2id,
|
||||
'startdatetime': startdatetime.isoformat(),
|
||||
'timezone': str(timezone)
|
||||
|
||||
Reference in New Issue
Block a user