flexall bug
This commit is contained in:
@@ -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 ['','<p>No non-zero data in selection</p>','','']
|
||||
|
||||
Reference in New Issue
Block a user