This commit is contained in:
DidierRLopes
2023-12-01 11:20:19 -08:00
committed by GitHub
parent c047cfeddd
commit 8273a200e8
2 changed files with 4 additions and 4 deletions

View File

@@ -39,11 +39,11 @@ We offer three distinct methods for importing your data into the platform.
## Single Widget
This method allows users to import an API endpoint that is directly rendered into a table format. While customization is limited, it provides a quick and easy way to visualize your data. More information can be found [here](/pro/single-widget).
This method allows users to import an API endpoint that is directly rendered into a table format. While customization is limited, it provides a quick and easy way to visualize your data. More information can be found [here](/pro/main-menu/data-connectors/single-widget).
## Integrate your own backend
For those who prefer a more hands-on approach, you can create your own backend. You can either leverage OpenBB's cookie-cutter or build a language-agnostic API. More information can be found [here](/pro/integrate-your-own-backend).
For those who prefer a more hands-on approach, you can create your own backend. You can either leverage OpenBB's cookie-cutter or build a language-agnostic API. More information can be found [here](/pro/main-menu/data-connectors/integrate-your-own-backend).
## Native Integrations

View File

@@ -20,13 +20,13 @@ def main() -> bool:
if widget_info.get("disabled", False):
continue
category_1 = widget_info.get("category_1") # this is a mandatory field
category_1 = widget_info.get("category") # this is a mandatory field
if category_1:
# Initialize dict for category_1 within category_root
if category_1 not in new_all_widgets:
new_all_widgets[category_1] = {}
category_2 = widget_info.get("category_2") # OPTIONAL field
category_2 = widget_info.get("sub_category") # OPTIONAL field
if category_2:
if category_2 not in new_all_widgets[category_1]:
new_all_widgets[category_1][category_2] = []