From ca9546c567d1d65327c843b07079e41d4441a4ea Mon Sep 17 00:00:00 2001 From: AlberLC Date: Sun, 18 Dec 2022 04:31:22 +0100 Subject: [PATCH] Improve legibility --- flanabot/bots/poll_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flanabot/bots/poll_bot.py b/flanabot/bots/poll_bot.py index ef6bbe2..b26b113 100644 --- a/flanabot/bots/poll_bot.py +++ b/flanabot/bots/poll_bot.py @@ -53,7 +53,7 @@ class PollBot(MultiBot, ABC): @staticmethod def _get_options(text: str, discarded_words: Iterable = ()) -> list[str]: - options = (option for option in text.split() if not flanautils.cartesian_product_string_matching(option.lower(), discarded_words, min_score=multibot_constants.PARSER_MIN_SCORE_DEFAULT)) + options = (option for option in text.split() if not flanautils.cartesian_product_string_matching(option.lower(), discarded_words, multibot_constants.PARSER_MIN_SCORE_DEFAULT)) text = ' '.join(options) conjunctions = [f' {conjunction} ' for conjunction in flanautils.CommonWords.get('conjunctions')]