mirror of
https://github.com/henry4682/linebot_finance.git
synced 2026-05-16 04:41:52 +00:00
feat:linebot
1. change Dockerfile 2. change the way import
This commit is contained in:
@@ -2,8 +2,8 @@ import re
|
||||
from datetime import datetime, date
|
||||
from sqlalchemy.orm import Session
|
||||
from sqlalchemy import text
|
||||
from app.db.models import User, LineUser, Category, CategoryRule, Expense
|
||||
from app.db.session import SessionLocal
|
||||
from db.models import User, LineUser, Category, CategoryRule, Expense
|
||||
from db.session import SessionLocal
|
||||
|
||||
EXPENSE_TEMPLATE = (
|
||||
"請填寫以下記帳資料後傳回:\n\n"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from app.line import captcha_state
|
||||
from app.line.expense import (
|
||||
from line import captcha_state
|
||||
from line.expense import (
|
||||
EXPENSE_TEMPLATE,
|
||||
save_expense,
|
||||
delete_expense,
|
||||
|
||||
@@ -9,8 +9,8 @@ from linebot.v3.messaging import (
|
||||
)
|
||||
from linebot.v3.webhooks import MessageEvent, TextMessageContent, FollowEvent
|
||||
from linebot.v3.exceptions import InvalidSignatureError
|
||||
from app.config import LINE_CHANNEL_ACCESS_TOKEN, LINE_CHANNEL_SECRET
|
||||
from app.line.handlers import handle_text, handle_captcha
|
||||
from config import LINE_CHANNEL_ACCESS_TOKEN, LINE_CHANNEL_SECRET
|
||||
from line.handlers import handle_text, handle_captcha
|
||||
|
||||
router = APIRouter()
|
||||
configuration = Configuration(access_token=LINE_CHANNEL_ACCESS_TOKEN)
|
||||
|
||||
Reference in New Issue
Block a user