bug fix
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user