Private
Public Access
1
0

Merge branch 'release/v23.1.13'

This commit is contained in:
2025-01-22 18:02:35 +01:00

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)