Private
Public Access
1
0

improvement

This commit is contained in:
Sander Roosendaal
2022-08-18 19:44:41 +02:00
parent af3d2f4056
commit 3d4a6f845f

View File

@@ -1168,6 +1168,8 @@ def handle_calctrimp(id,
normw = response.normw
hrtss = response.hrtss
print('normalized power',normp)
if np.isnan(tss): # pragma: no cover
tss = 0
@@ -1205,7 +1207,7 @@ def handle_calctrimp(id,
hrtss = 0
workout = Workout.objects.get(id=id)
workout.tss = int(tss)
workout.rscore = int(tss)
workout.normp = int(normp)
workout.trimp = int(trimp)
workout.hrtss = int(hrtss)