diff --git a/app/Linebot_handler/Handlers.py b/app/Linebot_handler/Handlers.py index f62242e..62d8227 100644 --- a/app/Linebot_handler/Handlers.py +++ b/app/Linebot_handler/Handlers.py @@ -1,4 +1,4 @@ -from Linebot_handler import captcha_state +from Linebot_handler import Captcha_state from Linebot_handler.Expense import ( EXPENSE_TEMPLATE, save_expense, @@ -41,10 +41,10 @@ def handle_captcha(text: str) -> bool: if ( text.isdigit() and len(text) == 5 - and captcha_state.captcha_event - and not captcha_state.captcha_event.is_set() + and Captcha_state.captcha_event + and not Captcha_state.captcha_event.is_set() ): - captcha_state.captcha_answer = text - captcha_state.captcha_event.set() + Captcha_state.captcha_answer = text + Captcha_state.captcha_event.set() return True return False \ No newline at end of file