cosmetic changes in training plan presentation
This commit is contained in:
@@ -25,6 +25,7 @@ import requests
|
||||
|
||||
from django.http import HttpResponse
|
||||
|
||||
import humanize
|
||||
|
||||
lbstoN = 4.44822
|
||||
|
||||
@@ -793,8 +794,9 @@ def step_to_string(step,short=False):
|
||||
unit = 'min'
|
||||
value = step['durationValue']
|
||||
if value/1000. >= 3600:
|
||||
unit = 'hour'
|
||||
unit = 'h'
|
||||
dd = timedelta(seconds=value/1000.)
|
||||
#duration = humanize.naturaldelta(dd, minimum_unit="seconds")
|
||||
duration = '{v}'.format(v=str(dd))
|
||||
elif durationtype == 'Distance':
|
||||
unit = 'm'
|
||||
|
||||
Reference in New Issue
Block a user