Merge branch 'release/v14.54'
This commit is contained in:
@@ -1719,7 +1719,14 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None,
|
|||||||
try:
|
try:
|
||||||
script,div = components(plot)
|
script,div = components(plot)
|
||||||
except:
|
except:
|
||||||
return '','Something went wrong withthe chart'
|
df.dropna(inplace=True,axis=0,how='any')
|
||||||
|
return (
|
||||||
|
'',
|
||||||
|
'Something went wrong withthe chart ({nrworkouts} workouts, {nrdata} datapoints)'.format(
|
||||||
|
nrworkouts = workouts.count(),
|
||||||
|
nrdata = len(df),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
return [script,div]
|
return [script,div]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user