adding race selector to workout upload
This commit is contained in:
@@ -1006,6 +1006,7 @@ def add_workout_indoorrace(ws,race,r,recordid=0):
|
||||
record.duration = ws[0].duration
|
||||
|
||||
|
||||
|
||||
if ws[0].weightcategory != record.weightcategory:
|
||||
errors.append('Your workout weight category did not match the weight category you registered')
|
||||
return 0,comments, errors,0
|
||||
@@ -1029,7 +1030,7 @@ def add_workout_indoorrace(ws,race,r,recordid=0):
|
||||
record.coursecompleted = True
|
||||
record.workoutid = ws[0].id
|
||||
record.save()
|
||||
|
||||
|
||||
add_workouts_plannedsession(ws,race,r)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user