Private
Public Access
1
0

flexall bug

This commit is contained in:
Sander Roosendaal
2017-04-26 08:30:00 +02:00
parent a4d9e878ea
commit 1d8f2a9933

View File

@@ -888,12 +888,12 @@ def interactive_cum_flex_chart2(theworkouts,promember=0,
datadf = dataprep.getsmallrowdata_db(columns,ids=ids,doclean=False) datadf = dataprep.getsmallrowdata_db(columns,ids=ids,doclean=False)
try: try:
tests = rowdata[yparam2] tests = datadf[yparam2]
except KeyError: except KeyError:
yparam2 = 'None' yparam2 = 'None'
try: try:
tests = rowdata[yparam1] tests = datadf[yparam1]
except KeyError: except KeyError:
yparam1 = 'None' yparam1 = 'None'
@@ -903,14 +903,6 @@ def interactive_cum_flex_chart2(theworkouts,promember=0,
yparamname2 = axlabels[yparam2] 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 # check if dataframe not empty
if datadf.empty: if datadf.empty:
return ['','<p>No non-zero data in selection</p>','',''] return ['','<p>No non-zero data in selection</p>','','']