Private
Public Access
1
0

small fix workout library

This commit is contained in:
2025-01-22 17:40:44 +01:00
parent e3b58b303a
commit 8d496ada03
2 changed files with 3 additions and 0 deletions

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)