Private
Public Access
1
0

adding TRIMP & rScore option to overview chart in workout list

This commit is contained in:
Sander Roosendaal
2020-08-23 14:48:53 +02:00
parent bdbd9d5667
commit 1f8e538d8b
3 changed files with 31 additions and 5 deletions

View File

@@ -2134,11 +2134,15 @@ def workouts_view(request,message='',successmessage='',
else:
stack='type'
yaxis = request.GET.get('yaxis','duration')
if yaxis not in ['duration','trimp','rscore']:
yaxis = 'duration'
script,div = interactive_activitychart(g_workouts,
g_startdate,
g_enddate,
stack=stack)
stack=stack,
yaxis=yaxis)
totalmeters,totalhours, totalminutes,total_seconds = get_totals(g_workouts)
totalminutes = '{totalminutes:02d}'.format(totalminutes=totalminutes)