Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix biztoc print on launch #5004

Merged
merged 2 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions openbb_terminal/common/biztoc_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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]

Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion openbb_terminal/miscellaneous/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion openbb_terminal/terminal_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down