total time instead of perc
This commit is contained in:
@@ -4700,7 +4700,7 @@ def history_view(request,userid=0):
|
||||
tscript,tdiv = interactive_workouttype_piechart(g_workouts)
|
||||
|
||||
totalmeters,totalhours, totalminutes, totalseconds = get_totals(g_workouts)
|
||||
totalminutes = "{totalminutes:02d}".format(totalminutes=totalminutes)
|
||||
|
||||
|
||||
# meters, duration per workout type
|
||||
wtypes = list(set([w.workouttype for w in g_workouts]))
|
||||
@@ -4738,10 +4738,10 @@ def history_view(request,userid=0):
|
||||
totaldiv = get_call()
|
||||
|
||||
totalsdict = {}
|
||||
totalsdict['duration'] = "{totalhours}:{totalminutes}:{totalseconds}".format(
|
||||
totalsdict['duration'] = "{totalhours:02d}:{totalminutes:02d}:{totalseconds:02d}".format(
|
||||
totalhours=totalhours,
|
||||
totalminutes=totalminutes,
|
||||
totalseconds=totalseconds
|
||||
totalseconds=totalseconds,
|
||||
)
|
||||
|
||||
totalsdict['distance'] = totalmeters
|
||||
|
||||
Reference in New Issue
Block a user