feat: linebot
All checks were successful
Oracle-Deploy / redeploy (push) Successful in 30s

1. change qurey string
This commit is contained in:
2026-03-24 10:33:59 +08:00
parent 85520e6724
commit c6e28ef1bd

View File

@@ -243,7 +243,7 @@ def query_month(line_user_id: str) -> str:
sql = text("""
SELECT
COALESCE(m.display_name, e.item_name) AS display_name,
SUM(e.total_amount) as total_amount
SUM(e.amount) as total_amount
FROM expenses e
LEFT JOIN merchant_mapping m ON e.seller_name LIKE '%%' || m.pattern || '%%'
WHERE e.user_id = :user_id