diff --git a/rowers/views.py b/rowers/views.py index be594c7c..447e96c0 100644 --- a/rowers/views.py +++ b/rowers/views.py @@ -2107,10 +2107,13 @@ def cum_flex(request,theuser=0, workouttypes = options['workouttypes'] includereststrokes = options['includereststrokes'] + waterboattype = options['waterboattype'] workstrokesonly = not includereststrokes + + checktypes = ['water','rower','dynamic','slides','skierg', 'paddle','snow','coastal','other'] - waterboattype = ['1x','2x','2-','4x','4-','8+'] + if deltadays>0: startdate = enddate-datetime.timedelta(days=int(deltadays)) @@ -2182,7 +2185,8 @@ def cum_flex(request,theuser=0, for type in checktypes: if optionsform.cleaned_data[type]: workouttypes.append(type) - + + options = { 'includereststrokes':includereststrokes, 'workouttypes':workouttypes,