fixed a few bgs
This commit is contained in:
@@ -4368,18 +4368,20 @@ def workout_stats_view(request,id=0,message="",successmessage=""):
|
||||
intensityfactor = normp/float(r.ftp)
|
||||
tss = 100.*((duration*normp*intensityfactor)/(3600.*r.ftp))
|
||||
|
||||
if not np.isnan(tss):
|
||||
otherstats['tss'] = {
|
||||
'verbose_name':'rScore',
|
||||
'value':int(tss),
|
||||
'unit':''
|
||||
}
|
||||
|
||||
if not np.isnan(normp):
|
||||
otherstats['np'] = {
|
||||
'verbose_name':'rPower',
|
||||
'value':int(10*normp)/10.,
|
||||
'unit':'Watt'
|
||||
}
|
||||
|
||||
otherstats['tss'] = {
|
||||
'verbose_name':'rScore',
|
||||
'value':int(tss),
|
||||
'unit':''
|
||||
}
|
||||
|
||||
|
||||
# HR Drift
|
||||
tmax = datadf['time'].max()
|
||||
tmin = datadf['time'].min()
|
||||
|
||||
Reference in New Issue
Block a user