From 0275cb3f84089b4123eaa433e420f1a09cef1a87 Mon Sep 17 00:00:00 2001 From: AlberLC Date: Sat, 3 Dec 2022 06:42:45 +0100 Subject: [PATCH] Update flanautils function names --- flanabot/bots/poll_bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flanabot/bots/poll_bot.py b/flanabot/bots/poll_bot.py index 5a6e2aa..dd3eb13 100644 --- a/flanabot/bots/poll_bot.py +++ b/flanabot/bots/poll_bot.py @@ -106,14 +106,14 @@ class PollBot(MultiBot, ABC): n1 = flanautils.cast_number(options[i - 1]) except ValueError: try: - n1 = flanautils.words_to_numbers(options[i - 1], ignore_no_numbers=False) + n1 = flanautils.text_to_number(options[i - 1], ignore_no_numbers=False) except KeyError: continue try: n2 = flanautils.cast_number(options[i + 1]) except ValueError: try: - n2 = flanautils.words_to_numbers(options[i + 1], ignore_no_numbers=False) + n2 = flanautils.text_to_number(options[i + 1], ignore_no_numbers=False) except KeyError: continue if options[i] in ('al', 'to'):