better calculation of world class record
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user