Private
Public Access
1
0
This commit is contained in:
2024-10-31 09:06:37 +01:00
parent 108e34315c
commit a80c523c3b
3 changed files with 7 additions and 1 deletions

View File

@@ -418,6 +418,8 @@ def trendflexdata(workouts, options, userid=0):
return ('', 'Error: not enough data')
except TypeError:
return ('','Error: something wrong with the data')
except KeyError:
return ('','Error: no {groupby} data'.format(groupby=groupby))
else: # pragma: no cover
try:
bins = np.arange(datadf['days ago'].min()-binsize,