fix: linebot

fix Handler.py import
This commit is contained in:
2026-03-10 10:47:51 +08:00
parent 66a26cef0e
commit 6e49ed9f53

View File

@@ -1,4 +1,4 @@
from Linebot_handler import captcha_state from Linebot_handler import Captcha_state
from Linebot_handler.Expense import ( from Linebot_handler.Expense import (
EXPENSE_TEMPLATE, EXPENSE_TEMPLATE,
save_expense, save_expense,
@@ -41,10 +41,10 @@ def handle_captcha(text: str) -> bool:
if ( if (
text.isdigit() text.isdigit()
and len(text) == 5 and len(text) == 5
and captcha_state.captcha_event and Captcha_state.captcha_event
and not captcha_state.captcha_event.is_set() and not Captcha_state.captcha_event.is_set()
): ):
captcha_state.captcha_answer = text Captcha_state.captcha_answer = text
captcha_state.captcha_event.set() Captcha_state.captcha_event.set()
return True return True
return False return False