mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 04:31:13 +00:00
[BugFix] Fix Chart Widgets Not Overwriting '{"type": "table"}' (#7024)
* fix chart widgets not overwriting 'table' * mock_widgets.json
This commit is contained in:
@@ -344,6 +344,7 @@ def build_json(openapi: dict, widget_exclude_filter: list):
|
||||
|
||||
if has_chart:
|
||||
widget_config_chart = deepcopy(widget_config)
|
||||
widget_config_chart["type"] = "chart"
|
||||
widget_config_chart["name"] = widget_config_chart["name"] + " (Chart)"
|
||||
widget_config_chart["widgetId"] = (
|
||||
f"{widget_config_chart['widgetId']}_chart"
|
||||
|
||||
@@ -2248,7 +2248,7 @@
|
||||
"name": "Fred Series (Chart)",
|
||||
"description": "Get data by series ID from FRED.",
|
||||
"category": "Economy",
|
||||
"type": "table",
|
||||
"type": "chart",
|
||||
"searchCategory": "chart",
|
||||
"widgetId": "economy_fred_series_fred_obb_chart",
|
||||
"params": [
|
||||
|
||||
Reference in New Issue
Block a user