Private
Public Access
1
0

better calculation of world class record

This commit is contained in:
Sander Roosendaal
2020-12-05 14:21:37 +01:00
parent 1dd0c0cff9
commit 0bb0237aee
3 changed files with 40 additions and 8 deletions

View File

@@ -3497,6 +3497,15 @@ def workout_stats_view(request,id=0,message="",successmessage=""):
# Normalized power & TSS
tss,normp = dataprep.workout_rscore(w)
goldmedalstandard = dataprep.workout_goldmedalstandard(w)
if not np.isnan(goldmedalstandard) and goldmedalstandard > 0:
otherstats['goldmedalstandard'] = {
'verbose_name': 'Gold Medal Standard',
'value': int(goldmedalstandard),
'unit': '%',
}
if not np.isnan(tss) and tss != 0: