Private
Public Access
1
0

fixing a bug

This commit is contained in:
2024-10-12 13:46:40 +02:00
parent 22c60d5e4e
commit b64788ddb9

View File

@@ -416,6 +416,8 @@ def trendflexdata(workouts, options, userid=0):
pd.cut(datadf[groupby], bins, labels=False))
except (ValueError, AttributeError): # pragma: no cover
return ('', 'Error: not enough data')
except TypeError:
return ('','Error: something wrong with the data')
else: # pragma: no cover
try:
bins = np.arange(datadf['days ago'].min()-binsize,