bug fix
This commit is contained in:
@@ -5031,7 +5031,10 @@ def history_view_data(request,userid=0):
|
|||||||
ignoreadvanced=True)
|
ignoreadvanced=True)
|
||||||
|
|
||||||
ddict['hrmean'] = int(wavg(ddf,'hr','deltat'))
|
ddict['hrmean'] = int(wavg(ddf,'hr','deltat'))
|
||||||
|
try:
|
||||||
ddict['hrmax'] = ddf['hr'].max().astype(int)
|
ddict['hrmax'] = ddf['hr'].max().astype(int)
|
||||||
|
except ValueError:
|
||||||
|
ddict['hrmax'] = 0
|
||||||
ddict['powermean'] = int(wavg(df,'power','deltat'))
|
ddict['powermean'] = int(wavg(df,'power','deltat'))
|
||||||
ddict['powermax'] = ddf['power'].max().astype(int)
|
ddict['powermax'] = ddf['power'].max().astype(int)
|
||||||
ddict['nrworkouts'] = a_workouts.count()
|
ddict['nrworkouts'] = a_workouts.count()
|
||||||
|
|||||||
Reference in New Issue
Block a user