From cbc42eb2a5b9bacca4acfb9bd5ba95ffbb1ebb5c Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 24 Nov 2020 17:57:29 +0100 Subject: [PATCH] fix? --- rowers/interactiveplots.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index 6e614247..6b996747 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -1555,8 +1555,7 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None, except: pass - if len(data) == 0: - return '','Insufficient data' + if len(data)>1: df = pd.concat(data,axis=0) @@ -1720,7 +1719,7 @@ def fitnessfit_chart(workouts,user,workoutmode='water',startdate=None, try: script,div = components(plot) except: - return '','Insufficient Data' + return '','Something went wrong withthe chart' return [script,div]