From 8b15faa90df682793fedaee267fe7a6e4c479e40 Mon Sep 17 00:00:00 2001 From: northern-64bit <75195383+northern-64bit@users.noreply.github.com> Date: Sun, 19 Feb 2023 22:01:34 +0100 Subject: [PATCH 1/5] Fix spelling mistake in portfolio menu help message --- openbb_terminal/portfolio/portfolio_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/portfolio/portfolio_controller.py b/openbb_terminal/portfolio/portfolio_controller.py index 57c4de75dce..4525e608331 100644 --- a/openbb_terminal/portfolio/portfolio_controller.py +++ b/openbb_terminal/portfolio/portfolio_controller.py @@ -206,7 +206,7 @@ class PortfolioController(BaseController): mt.add_info("_risk_") mt.add_cmd("var", self.portfolio_name and self.benchmark_name) mt.add_cmd("es", self.portfolio_name and self.benchmark_name) - mt.add_cmd("os", self.portfolio_name and self.benchmark_name) + mt.add_cmd("om", self.portfolio_name and self.benchmark_name) console.print(text=mt.menu_text, menu="Portfolio - Portfolio Optimization") self.update_choices() @@ -894,7 +894,7 @@ class PortfolioController(BaseController): ) else: console.print( - "[red]Please first define the portfolio (via 'load')[/red]\n" + "[red]Please define the portfolio first (via 'load')[/red]\n" ) @log_start_end(log=logger) From 659ea2c30637525b09fa0d14fc4ac4927ba5374c Mon Sep 17 00:00:00 2001 From: northern-64bit <75195383+northern-64bit@users.noreply.github.com> Date: Sun, 19 Feb 2023 22:25:19 +0100 Subject: [PATCH 2/5] Fix help message for stocks menu --- openbb_terminal/stocks/stocks_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/stocks/stocks_controller.py b/openbb_terminal/stocks/stocks_controller.py index 99642b1e2bb..b5b0db309d9 100644 --- a/openbb_terminal/stocks/stocks_controller.py +++ b/openbb_terminal/stocks/stocks_controller.py @@ -264,7 +264,7 @@ class StocksController(StockBaseController): "--ticker", action="store", dest="s_ticker", - required="-h" not in other_args and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, help="Ticker to get data for", ) parser.add_argument( @@ -363,7 +363,7 @@ class StocksController(StockBaseController): help="Ticker to analyze", type=str, default=None, - required="-h" not in other_args and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, ) parser.add_argument( "-p", @@ -495,7 +495,7 @@ class StocksController(StockBaseController): "--ticker", action="store", dest="ticker", - required="-h" not in other_args and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, help="Ticker to get data for", ) parser.add_argument( From ca67168a475d1948752ac656fbfa0c1ce1a11850 Mon Sep 17 00:00:00 2001 From: northern-64bit <75195383+northern-64bit@users.noreply.github.com> Date: Sun, 19 Feb 2023 22:39:01 +0100 Subject: [PATCH 3/5] Fix linting --- openbb_terminal/stocks/stocks_controller.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/stocks/stocks_controller.py b/openbb_terminal/stocks/stocks_controller.py index b5b0db309d9..dd2bfc10f7c 100644 --- a/openbb_terminal/stocks/stocks_controller.py +++ b/openbb_terminal/stocks/stocks_controller.py @@ -264,7 +264,8 @@ class StocksController(StockBaseController): "--ticker", action="store", dest="s_ticker", - required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) + and not self.ticker, help="Ticker to get data for", ) parser.add_argument( @@ -363,7 +364,8 @@ class StocksController(StockBaseController): help="Ticker to analyze", type=str, default=None, - required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) + and not self.ticker, ) parser.add_argument( "-p", @@ -495,7 +497,8 @@ class StocksController(StockBaseController): "--ticker", action="store", dest="ticker", - required=not any(x in other_args for x in ["-h", "--help"]) and not self.ticker, + required=not any(x in other_args for x in ["-h", "--help"]) + and not self.ticker, help="Ticker to get data for", ) parser.add_argument( From 6e3a683beb5fa907736c49483b2983453c7b7f0a Mon Sep 17 00:00:00 2001 From: xinbaDev Date: Mon, 20 Feb 2023 10:11:51 +0900 Subject: [PATCH 4/5] fix variable name (#4289) Co-authored-by: James Maslek --- openbb_terminal/reports/reports_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_terminal/reports/reports_model.py b/openbb_terminal/reports/reports_model.py index 8e6aad76b6d..602cabef263 100644 --- a/openbb_terminal/reports/reports_model.py +++ b/openbb_terminal/reports/reports_model.py @@ -282,7 +282,7 @@ def create_output_path(input_path: str, parameters_dict: Dict[str, Any]) -> str: + "_" + f"{report_name}{args_to_output}" ) - output_path = report_output_name.replace(".", "_") + report_output_name = report_output_name.replace(".", "_") output_path = str(USER_REPORTS_DIRECTORY / report_output_name) return output_path From 382874b4d9b045260b9624b75957957d4983eb50 Mon Sep 17 00:00:00 2001 From: "0x-Mr.7i74N" <42717219+shivansh2310@users.noreply.github.com> Date: Mon, 20 Feb 2023 06:45:44 +0530 Subject: [PATCH 5/5] Update api-keys.md (#4256) Co-authored-by: James Maslek --- website/content/terminal/guides/advanced/api-keys.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/content/terminal/guides/advanced/api-keys.md b/website/content/terminal/guides/advanced/api-keys.md index 226587b56be..eb863faec6b 100644 --- a/website/content/terminal/guides/advanced/api-keys.md +++ b/website/content/terminal/guides/advanced/api-keys.md @@ -411,7 +411,7 @@ After creating an account go to https://app.santiment.net/account#api-keys and g
ShroomDK -Go to https://app.santiment.net You will be greeted with the following screen: +Go to https://sdk.flipsidecrypto.xyz/shroomdk You will be greeted with the following screen: image