diff --git a/openbb_terminal/stocks/screener/screener_controller.py b/openbb_terminal/stocks/screener/screener_controller.py index 763ba8b9b56..0403a758ff7 100644 --- a/openbb_terminal/stocks/screener/screener_controller.py +++ b/openbb_terminal/stocks/screener/screener_controller.py @@ -58,13 +58,13 @@ class ScreenerController(BaseController): PRESETS_PATH_DEFAULT = Path(__file__).parent / "presets" preset_choices = { - filepath.name.strip(".ini"): filepath + filepath.name.replace(".ini", ""): filepath for filepath in PRESETS_PATH.iterdir() if filepath.suffix == ".ini" } preset_choices.update( { - filepath.name.strip(".ini"): filepath + filepath.name.replace(".ini", ""): filepath for filepath in PRESETS_PATH_DEFAULT.iterdir() if filepath.suffix == ".ini" } diff --git a/tests/openbb_terminal/stocks/screener/test_screener_controller.py b/tests/openbb_terminal/stocks/screener/test_screener_controller.py index 85fccd610fc..ae38c940122 100644 --- a/tests/openbb_terminal/stocks/screener/test_screener_controller.py +++ b/tests/openbb_terminal/stocks/screener/test_screener_controller.py @@ -239,6 +239,15 @@ def test_call_func_expect_queue(expected_queue, func, queue): [], dict(), ), + ( + "call_set", + [ + "short_squeeze_scan.ini", + ], + "", + [], + dict(), + ), ( "call_historical", [