Merge branch 'develop' into feature/stravaapi
This commit is contained in:
@@ -2321,11 +2321,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
|
||||
except ColumnNotFoundError:
|
||||
ddict['hrmax'] = 0
|
||||
|
||||
Reference in New Issue
Block a user