Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-08-19 20:56:33 +02:00
parent a9d1b2c94d
commit d061a3bba5

View File

@@ -1531,7 +1531,7 @@ def add_workout_indoorrace(ws,race,r,recordid=0,doregister=False):
errors.append('You must submit a indoor rowing workout')
return 0,comments, errors, 0
if ws[0].weightcategory != record.weightcategory:
if record.weightcategory == 'lwt' and ws[0].weightcategory != record.weightcategory:
errors.append('Your workout weight category did not match the weight category you registered')
return 0,comments, errors,0
@@ -1671,7 +1671,7 @@ def add_workout_race(ws,race,r,splitsecond=0,recordid=0,doregister=False):
errors.append('Your workout boat type did not match the boat type you registered')
return 0,comments,errors,0
if ws[0].weightcategory != record.weightcategory:
if record.weightcategory == 'lwt' and ws[0].weightcategory != record.weightcategory:
errors.append('Your workout weight category did not match the weight category you registered')
return 0,comments, errors,0