fixing hrftp
This commit is contained in:
@@ -1621,7 +1621,20 @@ def get_existing_job(w):
|
|||||||
def workout_trimp(w, reset=False):
|
def workout_trimp(w, reset=False):
|
||||||
r = w.user
|
r = w.user
|
||||||
|
|
||||||
if w.trimp > -1 and not reset:
|
if w.trimp <= 0 and w.averagehr > 0:
|
||||||
|
ftp = float(r.ftp)
|
||||||
|
_ = myqueue(
|
||||||
|
queuehigh,
|
||||||
|
handle_calctrimp,
|
||||||
|
w.id,
|
||||||
|
w.csvfilename,
|
||||||
|
ftp,
|
||||||
|
r.sex,
|
||||||
|
r.hrftp,
|
||||||
|
r.max,
|
||||||
|
r.rest)
|
||||||
|
return w.trimp, w.hrtss
|
||||||
|
elif w.trimp > -1 and not reset:
|
||||||
return w.trimp, w.hrtss
|
return w.trimp, w.hrtss
|
||||||
|
|
||||||
if get_existing_job(w):
|
if get_existing_job(w):
|
||||||
|
|||||||
Reference in New Issue
Block a user