From 5a5dbd25788af48b1bac8eb14f21b64392f11ec0 Mon Sep 17 00:00:00 2001 From: James Maslek Date: Wed, 10 May 2023 21:54:59 -0700 Subject: [PATCH 1/2] fix biztoc print on launch --- openbb_terminal/common/biztoc_model.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/openbb_terminal/common/biztoc_model.py b/openbb_terminal/common/biztoc_model.py index 1a6746da37c2..315e260a48f7 100644 --- a/openbb_terminal/common/biztoc_model.py +++ b/openbb_terminal/common/biztoc_model.py @@ -18,7 +18,6 @@ os.environ["SSL_CERT_FILE"] = certifi.where() -@check_api_key(["API_BIZTOC_TOKEN"]) def get_sources() -> pd.DataFrame: """Get list of source ids to query for individual news articles via get_news. [Source: BizToc] @@ -54,7 +53,6 @@ def get_sources() -> pd.DataFrame: return df -@check_api_key(["API_BIZTOC_TOKEN"]) def get_tags() -> pd.DataFrame: """Get list of trending tags to query for individual news articles via get_news. [Source: BizToc] @@ -81,7 +79,6 @@ def get_tags() -> pd.DataFrame: df = pd.DataFrame(req.json(), columns=["tag"]) elif hasattr(req, "status_code") and req.status_code != 200: # If data request failed - console.print("[red]Status code not 200. Unable to retrieve data\n[/red]") df = pd.DataFrame() return df From 92838646a1133b844664806b45dd956f4a3006ff Mon Sep 17 00:00:00 2001 From: James Maslek Date: Wed, 10 May 2023 23:35:18 -0700 Subject: [PATCH 2/2] missed something --- openbb_terminal/miscellaneous/i18n/en.yml | 1 - openbb_terminal/terminal_controller.py | 1 - 2 files changed, 2 deletions(-) diff --git a/openbb_terminal/miscellaneous/i18n/en.yml b/openbb_terminal/miscellaneous/i18n/en.yml index 8a9e527d575e..f06570a2d4f5 100644 --- a/openbb_terminal/miscellaneous/i18n/en.yml +++ b/openbb_terminal/miscellaneous/i18n/en.yml @@ -7,7 +7,6 @@ en: update: attempt to update the terminal automatically (GitHub version) wiki: search for an expression in Wikipedia (https://www.wikipedia.org/) news: display news articles based on term and data sources - news_biztoc: display trending and search news articles from BizToc (https://biztoc.com) keys: set API keys and check their validity featflags: enable and disable feature flags sources: select your preferred data sources diff --git a/openbb_terminal/terminal_controller.py b/openbb_terminal/terminal_controller.py index 1efff8be0386..1d00c10af937 100644 --- a/openbb_terminal/terminal_controller.py +++ b/openbb_terminal/terminal_controller.py @@ -204,7 +204,6 @@ def print_help(self): mt.add_cmd("update") mt.add_cmd("wiki") mt.add_cmd("news") - mt.add_cmd("news_biztoc") mt.add_raw("\n") mt.add_info("_configure_") if is_auth_enabled():