Private
Public Access
1
0

start of UI for Analysis -> CP chart

This commit is contained in:
Sander Roosendaal
2020-10-11 13:47:44 +02:00
parent 49cbb57355
commit 88107530a5
3 changed files with 56 additions and 23 deletions

View File

@@ -500,6 +500,9 @@ def histodata(workouts, options):
return(script,div)
def cpdata(workouts, options):
return ('','Not Yet Implemented')
def statsdata(workouts, options):
includereststrokes = options['includereststrokes']
spmmin = options['spmmin']
@@ -725,6 +728,8 @@ def analysis_view_data(request,userid=0):
script,div = statsdata(workouts,options)
elif function == 'compare':
script,div = comparisondata(workouts,options)
elif function == 'cp':
script, div = cpdata(workouts, options)
else:
script = ''
div = 'Unknown analysis functions'
@@ -4849,7 +4854,7 @@ def history_view_data(request,userid=0):
typeselect = 'All'
yaxis = request.GET.get('yaxis','duration')
if yaxis.lower() not in ['duration','rscore','trimp']:
yaxis = 'duration'