Skip to content

Commit

Permalink
Merge pull request #112 from PSLmodels/cs-bokeh-update-2
Browse files Browse the repository at this point in the history
Update missed components calls to json_item
  • Loading branch information
hdoupe authored Jan 16, 2020
2 parents a75f735 + 9b83cd9 commit a59c61b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions cs-config/cs_config/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,25 +189,19 @@ def create_layout(data, start_year, end_year):
table_layout = layout(
children=[yr_tabs]
)
agg_js, agg_div = components(agg_layout)
table_js, table_div = components(table_layout)
agg_data = json_item(agg_layout)
table_data = json_item(table_layout)

# return a dictionary of outputs ready for COMP
agg_outputs = {
"media_type": "bokeh",
"title": "Aggregate Results",
"data": {
"javascript": agg_js,
"html": agg_div
}
"data": agg_data,
}
table_outputs = {
"media_type": "bokeh",
"title": "Tables",
"data": {
"javascript": table_js,
"html": table_div
}
"data": table_data,
}

# return js, div, cdn_js, cdn_css, widget_js, widget_css
Expand Down

0 comments on commit a59c61b

Please sign in to comment.