fixing error
This commit is contained in:
@@ -2282,11 +2282,11 @@ def history_view_data(request, userid=0):
|
||||
|
||||
try:
|
||||
ddict['hrmean'] = int(wavg(ddf, 'hr', 'deltat'))
|
||||
except (KeyError, ValueError, AttributeError): # pragma: no cover
|
||||
except (KeyError, ValueError, AttributeError, ColumnNotFoundError): # pragma: no cover
|
||||
ddict['hrmean'] = 0
|
||||
try:
|
||||
ddict['hrmax'] = int(ddf['hr'].max())
|
||||
except (KeyError, ValueError, AttributeError): # pragma: no cover
|
||||
except (KeyError, ValueError, AttributeError, ColumnNotFoundError): # pragma: no cover
|
||||
ddict['hrmax'] = 0
|
||||
|
||||
ddict['powermean'] = int(wavg(ddf, 'power', 'deltat'))
|
||||
|
||||
Reference in New Issue
Block a user