adding TRIMP & rScore option to overview chart in workout list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user