From d6542ffd2dfe93dae004d7f5196a2a4488d16583 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 21 Oct 2022 21:45:17 +0200 Subject: [PATCH] Fix "Target not AdjClose" warning incorrectly appearing (#2980) * Replace "AdjClose" with "adjclose" where needed * Fix choices for "pick" --- .../stocks/quantitative_analysis/qa_controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/stocks/quantitative_analysis/qa_controller.py b/openbb_terminal/stocks/quantitative_analysis/qa_controller.py index 7f0f238c042..01c542006df 100644 --- a/openbb_terminal/stocks/quantitative_analysis/qa_controller.py +++ b/openbb_terminal/stocks/quantitative_analysis/qa_controller.py @@ -99,7 +99,7 @@ class QaController(StockBaseController): zero_to_hundred_detailed: dict = { str(c): {} for c in np.arange(0.0, 100.0, 0.1) } - choices["pick"] = {c: {} for c in list(stock.columns)} + choices["pick"] = {c: {} for c in list(self.stock.columns)} choices["load"] = { "--ticker": None, "-t": "--ticker", @@ -587,9 +587,9 @@ class QaController(StockBaseController): ) ns_parser = self.parse_known_args_and_warn(parser, other_args) if ns_parser: - if self.target != "AdjClose": + if self.target != "adjclose": console.print( - "Target not AdjClose. For best results, use `pick AdjClose` first." + "Target not adjclose. For best results, use `pick adjclose` first." ) qa_view.display_acf(