start of UI for Analysis -> CP chart
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user