mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
fix: linebot
fix Handler.py import
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user