fix flex
This commit is contained in:
@@ -2691,6 +2691,8 @@ def interactive_flex_chart2(id, r, promember=0,
|
||||
except TypeError: # pragma: no cover
|
||||
rowdata['ytrend'] = y1
|
||||
|
||||
rowdata.replace([np.inf, -np.inf], np.nan, inplace=True)
|
||||
rowdata.dropna(axis=1, how='all', inplace=True)
|
||||
data_dict = rowdata.to_dict("records")
|
||||
|
||||
metrics_list = [{'name': name, 'rowingmetrics':d } for name, d in metrics.rowingmetrics]
|
||||
@@ -2705,8 +2707,8 @@ def interactive_flex_chart2(id, r, promember=0,
|
||||
'trendline': trendline,
|
||||
'plottype': plottype,
|
||||
}
|
||||
|
||||
script, div = get_chart("/flex", chart_data)
|
||||
|
||||
script, div = get_chart("/flex", chart_data, debug=False)
|
||||
|
||||
return script, div, workstrokesonly
|
||||
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user