diff --git a/rowers/plannedsessions.py b/rowers/plannedsessions.py index 326b02d3..a5c5ffcc 100644 --- a/rowers/plannedsessions.py +++ b/rowers/plannedsessions.py @@ -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