fix?
This commit is contained in:
@@ -1555,8 +1555,7 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None,
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if len(data) == 0:
|
|
||||||
return '','Insufficient data'
|
|
||||||
if len(data)>1:
|
if len(data)>1:
|
||||||
df = pd.concat(data,axis=0)
|
df = pd.concat(data,axis=0)
|
||||||
|
|
||||||
@@ -1720,7 +1719,7 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None,
|
|||||||
try:
|
try:
|
||||||
script,div = components(plot)
|
script,div = components(plot)
|
||||||
except:
|
except:
|
||||||
return '','Insufficient Data'
|
return '','Something went wrong withthe chart'
|
||||||
|
|
||||||
return [script,div]
|
return [script,div]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user