Private
Public Access
1
0

bug fix in stroke force chart

This commit is contained in:
Sander Roosendaal
2019-10-22 08:37:09 +02:00
parent ec75ba1c16
commit 964416362d

View File

@@ -704,12 +704,20 @@ def interactive_forcecurve(theworkouts,workstrokesonly=True,plottype='scatter'):
)
if plottype == 'scatter':
sourcepoints = ColumnDataSource(
data = dict(
peakforceangle = rowdata['peakforceangle'],
peakforce = rowdata['peakforce']
try:
sourcepoints = ColumnDataSource(
data = dict(
peakforceangle = rowdata['peakforceangle'],
peakforce = rowdata['peakforce']
)
)
)
except KeyError:
sourcepoints = ColumnDataSource(
data = dict(
peakforceangle = [],
peakforce = []
)
)
else:
sourcepoints = ColumnDataSource(
data = dict(