Private
Public Access
1
0
This commit is contained in:
2025-01-22 18:02:19 +01:00
parent 0892a7d1b6
commit c3b3537f84

View File

@@ -772,6 +772,9 @@ def step_to_time_dist(step, avgspeed=3.2, ftp=200, ftspm=25, ftv=3.7, powerzones
distance = avgspeed*seconds
rscore = 60.*seconds/3600.
if targettype is None:
return seconds, distance, rscore
if targettype.lower() == 'speed': # pragma: no cover
value = step.get('targetValue', 0)
valuelow = step.get('targetValueLow', 0)