Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2020-10-19 18:05:42 +02:00
parent b7314392cc
commit 3497325a0d

View File

@@ -5031,7 +5031,10 @@ def history_view_data(request,userid=0):
ignoreadvanced=True)
ddict['hrmean'] = int(wavg(ddf,'hr','deltat'))
ddict['hrmax'] = ddf['hr'].max().astype(int)
try:
ddict['hrmax'] = ddf['hr'].max().astype(int)
except ValueError:
ddict['hrmax'] = 0
ddict['powermean'] = int(wavg(df,'power','deltat'))
ddict['powermax'] = ddf['power'].max().astype(int)
ddict['nrworkouts'] = a_workouts.count()