showing rests strokes if workout only has rest strokes:wq
This commit is contained in:
@@ -1809,7 +1809,11 @@ def interactive_flex_chart2(id=0,promember=0,
|
||||
rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=True,
|
||||
workstrokesonly=workstrokesonly)
|
||||
|
||||
|
||||
if rowdata.empty:
|
||||
rowdata = dataprep.getsmallrowdata_db(columns,ids=[id],doclean=True,
|
||||
workstrokesonly=False)
|
||||
workstrokesonly=False
|
||||
|
||||
try:
|
||||
tests = rowdata[yparam2]
|
||||
except KeyError:
|
||||
@@ -2250,7 +2254,7 @@ def interactive_flex_chart2(id=0,promember=0,
|
||||
js_resources = INLINE.render_js()
|
||||
css_resources = INLINE.render_css()
|
||||
|
||||
return [script,div,js_resources,css_resources]
|
||||
return [script,div,js_resources,css_resources,workstrokesonly]
|
||||
|
||||
|
||||
def interactive_bar_chart(id=0,promember=0):
|
||||
|
||||
@@ -5582,7 +5582,7 @@ def workout_flexchart3_view(request,*args,**kwargs):
|
||||
|
||||
# create interactive plot
|
||||
try:
|
||||
script,div,js_resources,css_resources = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
|
||||
script,div,js_resources,css_resources,workstrokesonly = interactive_flex_chart2(id,xparam=xparam,yparam1=yparam1,
|
||||
yparam2=yparam2,
|
||||
promember=promember,plottype=plottype,
|
||||
workstrokesonly=workstrokesonly)
|
||||
|
||||
Reference in New Issue
Block a user