From 22385d606ffa149caade696771d22dca11829139 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 17 Jan 2023 22:28:32 +0100 Subject: [PATCH] trimp not recalc if 0, same for tss, hrtss --- rowers/dataprep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index a5972d17..6373446c 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -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):