From 1d8f2a993370f32e77ddde4ffa783b8eb5aaaf01 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Wed, 26 Apr 2017 08:30:00 +0200 Subject: [PATCH] flexall bug --- rowers/interactiveplots.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/rowers/interactiveplots.py b/rowers/interactiveplots.py index d3eeefdf..6771b486 100644 --- a/rowers/interactiveplots.py +++ b/rowers/interactiveplots.py @@ -888,12 +888,12 @@ def interactive_cum_flex_chart2(theworkouts,promember=0, datadf = dataprep.getsmallrowdata_db(columns,ids=ids,doclean=False) try: - tests = rowdata[yparam2] + tests = datadf[yparam2] except KeyError: yparam2 = 'None' try: - tests = rowdata[yparam1] + tests = datadf[yparam1] except KeyError: yparam1 = 'None' @@ -903,14 +903,6 @@ def interactive_cum_flex_chart2(theworkouts,promember=0, yparamname2 = axlabels[yparam2] - #datadf = datadf[datadf[yparam1] > 0] - - - #datadf = datadf[datadf[xparam] > 0] - - #if yparam2 != 'None': - # datadf = datadf[datadf[yparam2] > 0] - # check if dataframe not empty if datadf.empty: return ['','

No non-zero data in selection

','','']