Merge branch 'hotfix/v5.14'
This commit is contained in:
@@ -2646,9 +2646,21 @@ def cum_flex(request,theuser=0,
|
|||||||
if 'options' in request.session:
|
if 'options' in request.session:
|
||||||
options = request.session['options']
|
options = request.session['options']
|
||||||
|
|
||||||
workouttypes = options['workouttypes']
|
try:
|
||||||
includereststrokes = options['includereststrokes']
|
workouttypes = options['workouttypes']
|
||||||
waterboattype = options['waterboattype']
|
except KeyError:
|
||||||
|
workouttypes = ['rower','dynamic','slides']
|
||||||
|
|
||||||
|
try:
|
||||||
|
includereststrokes = options['includereststrokes']
|
||||||
|
except KeyError:
|
||||||
|
includereststrokes = False
|
||||||
|
|
||||||
|
try:
|
||||||
|
waterboattype = options['waterboattype']
|
||||||
|
except KeyError:
|
||||||
|
waterboattype = ['1x','2x','2-','4x','4-','8+']
|
||||||
|
|
||||||
workstrokesonly = not includereststrokes
|
workstrokesonly = not includereststrokes
|
||||||
|
|
||||||
|
|
||||||
@@ -6501,9 +6513,19 @@ def cumstats(request,theuser=0,
|
|||||||
if 'options' in request.session:
|
if 'options' in request.session:
|
||||||
options = request.session['options']
|
options = request.session['options']
|
||||||
|
|
||||||
workouttypes = options['workouttypes']
|
try:
|
||||||
includereststrokes = options['includereststrokes']
|
workouttypes = options['workouttypes']
|
||||||
|
except KeyError:
|
||||||
|
workouttypes = ['rower','dynamic','slides']
|
||||||
|
|
||||||
|
try:
|
||||||
|
includereststrokes = options['includereststrokes']
|
||||||
|
except KeyError:
|
||||||
|
includereststrokes = False
|
||||||
|
|
||||||
|
|
||||||
workstrokesonly = not includereststrokes
|
workstrokesonly = not includereststrokes
|
||||||
|
|
||||||
checktypes = ['water','rower','dynamic','slides','skierg',
|
checktypes = ['water','rower','dynamic','slides','skierg',
|
||||||
'paddle','snow','other','coastal']
|
'paddle','snow','other','coastal']
|
||||||
waterboattype = ['1x','2x','2-','4x','4-','8+']
|
waterboattype = ['1x','2x','2-','4x','4-','8+']
|
||||||
|
|||||||
Reference in New Issue
Block a user