Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2021-09-14 19:46:59 +02:00
parent 86f86b5f53
commit 2c1e6c5909
3 changed files with 6 additions and 2 deletions

View File

@@ -2507,7 +2507,7 @@ def history_view_data(request,userid=0):
ddict['hrmean'] = int(wavg(ddf,'hr','deltat'))
try:
ddict['hrmax'] = ddf['hr'].max().astype(int)
except (ValueError, AttributeError): # pragma: no cover
except (KeyError, ValueError, AttributeError): # pragma: no cover
ddict['hrmax'] = 0
ddict['powermean'] = int(wavg(ddf,'power','deltat'))