Private
Public Access
1
0

import tasks c2 and rp3 updated

This commit is contained in:
2024-01-20 17:04:32 +01:00
parent d78f60b5b6
commit d6bca69cfa
2 changed files with 9 additions and 4 deletions

View File

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

Binary file not shown.