Private
Public Access
1
0

trimp not recalc if 0, same for tss, hrtss

This commit is contained in:
Sander Roosendaal
2023-01-17 22:28:32 +01:00
parent 34cbbbb1e7
commit 22385d606f

View File

@@ -1570,7 +1570,7 @@ def get_existing_job(w):
def workout_trimp(w, reset=False):
r = w.user
if w.trimp > 0 and not reset:
if w.trimp > -1 and not reset:
return w.trimp, w.hrtss
if get_existing_job(w):
@@ -1615,7 +1615,7 @@ def workout_trimp(w, reset=False):
def workout_rscore(w, reset=False):
if w.rscore > 0 and not reset:
if w.rscore > -1 and not reset:
return w.rscore, w.normp
if get_existing_job(w):
@@ -1646,7 +1646,7 @@ def workout_rscore(w, reset=False):
def workout_normv(w, pp=4.0):
if w.normv > 0: # pragma: no cover
if w.normv > -1: # pragma: no cover
return w.normv, w.normw
if get_existing_job(w):