added adaptive classes (not tested)
This commit is contained in:
@@ -1025,6 +1025,10 @@ def add_workout_indoorrace(ws,race,r,recordid=0):
|
||||
errors.append('Your workout weight category did not match the weight category you registered')
|
||||
return 0,comments, errors,0
|
||||
|
||||
if ws[0].adaptiveclass != record.adaptiveclass:
|
||||
errors.append('Your adaptive classification did not match the registration')
|
||||
return 0,comments, errors, 0
|
||||
|
||||
# start adding sessions
|
||||
if ws[0].startdatetime>=startdatetime and ws[0].startdatetime<=enddatetime:
|
||||
ws[0].plannedsession = race
|
||||
@@ -1129,6 +1133,10 @@ def add_workout_race(ws,race,r,splitsecond=0,recordid=0):
|
||||
errors.append('Your workout weight category did not match the weight category you registered')
|
||||
return 0,comments, errors,0
|
||||
|
||||
if ws[0].adaptiveclass != record.adaptiveclass:
|
||||
errors.append('Your workout adaptive classification did not match the registration')
|
||||
return 0,comments, errors,0
|
||||
|
||||
# start adding sessions
|
||||
if ws[0].startdatetime>=startdatetime and ws[0].startdatetime<=enddatetime:
|
||||
ws[0].plannedsession = race
|
||||
|
||||
Reference in New Issue
Block a user