From 43a2e13e356c9e341f3becac52c8e3eab72edd13 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 18 Feb 2025 16:32:20 +0100 Subject: [PATCH] commute and race override warmup and cooldown --- rowers/views/workoutviews.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rowers/views/workoutviews.py b/rowers/views/workoutviews.py index b23fa352..b69629f8 100644 --- a/rowers/views/workoutviews.py +++ b/rowers/views/workoutviews.py @@ -4537,9 +4537,9 @@ def workout_edit_view(request, id=0, message="", successmessage=""): boatname = form.cleaned_data.get('boatname', '') empowerside = form.cleaned_data.get('empowerside','port') - if is_race and subtype is None: + if is_race: subtype = "Race" - elif is_commute and subtype is None: + elif is_commute: subtype = "Commute" if private: