Private
Public Access
1
0

total time instead of perc

This commit is contained in:
Sander Roosendaal
2020-05-10 11:25:52 +02:00
parent 98b45d910e
commit d01c42af2e
2 changed files with 27 additions and 48 deletions

View File

@@ -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