diff --git a/gamestonk_terminal/screener/finviz_view.py b/gamestonk_terminal/screener/finviz_view.py index 2b3dfc5e181..67a9d5af3fd 100644 --- a/gamestonk_terminal/screener/finviz_view.py +++ b/gamestonk_terminal/screener/finviz_view.py @@ -168,6 +168,7 @@ def screener(other_args: List[str], loaded_preset: str, data_type: str): choices=[ preset.split(".")[0] for preset in os.listdir("gamestonk_terminal/screener/presets") + if preset[-4:] == '.ini' ], ) parser.add_argument( diff --git a/gamestonk_terminal/screener/presets/README.md b/gamestonk_terminal/screener/presets/README.md new file mode 100644 index 00000000000..9d5712b9a11 --- /dev/null +++ b/gamestonk_terminal/screener/presets/README.md @@ -0,0 +1,22 @@ +# PRESETS + +* [template](#template) +* [sexy_year](#sexy_year) + +--- + +### template + +**Author of preset:** GamestonkTerminal +**Contact:** https://github.com/DidierRLopes/GamestonkTerminal#contacts +**Description:** Template with all available filters and their options menu. More information can be found in https://finviz.com/help/screener.ashx and https://finviz.com/help/technical-analysis/charts-patterns.ashx + +--- + +### sexy_year + +**Author of preset:** Sexy Year +**Contact:** Add contact of author, if (s)he whishes to be contacted. This can be an hyperlink, an e-mail, wtv +**Description:** This is just a sample. The user that adds the preset can add a description for what type of stocks these filters are aimed for + +--- \ No newline at end of file diff --git a/gamestonk_terminal/screener/presets/sexy_year.ini b/gamestonk_terminal/screener/presets/sexy_year.ini index 427429aeaaf..4ad283cc7de 100644 --- a/gamestonk_terminal/screener/presets/sexy_year.ini +++ b/gamestonk_terminal/screener/presets/sexy_year.ini @@ -1,5 +1,6 @@ # Author of preset: Sexy Year -# Description: This is just a sample. The user that adds the preset can add a description for what type of stocks these filters are aimed for. +# Contact: Add contact of author, if (s)he whishes to be contacted. This can be an hyperlink, an e-mail, wtv +# Description: This is just a sample. The user that adds the preset can add a description for what type of stocks these filters are aimed for [General] Order = diff --git a/gamestonk_terminal/screener/presets/template.ini b/gamestonk_terminal/screener/presets/template.ini index be09f4be3ca..5f04f190c85 100644 --- a/gamestonk_terminal/screener/presets/template.ini +++ b/gamestonk_terminal/screener/presets/template.ini @@ -1,4 +1,5 @@ # Author of preset: GamestonkTerminal +# Contact: https://github.com/DidierRLopes/GamestonkTerminal#contacts # Description: Template with all available filters and their options menu. # More information can be found in https://finviz.com/help/screener.ashx # and https://finviz.com/help/technical-analysis/charts-patterns.ashx diff --git a/gamestonk_terminal/screener/screener_controller.py b/gamestonk_terminal/screener/screener_controller.py index e1f37a0334c..167b3a6b209 100644 --- a/gamestonk_terminal/screener/screener_controller.py +++ b/gamestonk_terminal/screener/screener_controller.py @@ -83,6 +83,7 @@ class ScreenerController: presets = [ preset.split(".")[0] for preset in os.listdir("gamestonk_terminal/screener/presets") + if preset[-4:] == '.ini' ] for preset in presets: @@ -123,6 +124,7 @@ class ScreenerController: choices=[ preset.split(".")[0] for preset in os.listdir("gamestonk_terminal/screener/presets") + if preset[-4:] == '.ini' ], )