From d061a3bba5d848dee5f7e8c560f57ef8721fd8e6 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 19 Aug 2020 20:56:33 +0200 Subject: [PATCH] fix for #569 --- rowers/plannedsessions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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