Private
Public Access
1
0

Merge branch 'release/v23.1.12'

This commit is contained in:
2025-01-22 17:41:15 +01:00
2 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

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