Private
Public Access
1
0

fixing strava import failure

This commit is contained in:
Sander Roosendaal
2018-12-08 11:10:01 +01:00
parent b9062bd768
commit e4bc752b3b
2 changed files with 12 additions and 2 deletions

View File

@@ -377,7 +377,12 @@ def totaltime_sec_to_string(totaltime):
if not message:
message = 'Warning: there is something wrong with the workout duration'
duration = "%s:%s:%s.%s" % (hours, minutes, seconds, tenths)
duration = "{hours:02d}:{minutes:02d}:{seconds:02d}.{tenths}".format(
hours=hours,
minutes=minutes,
seconds=seconds,
tenths=tenths
)
return duration