fix: add python-pptx to requirements + fix BCG empty name filter
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

- requirements.txt: 加入 python-pptx(ADR-014 PPT 系統必要依賴,前次漏加)
- openclaw_bot_routes.py: BCG SQL 補 brand_name/area_name IS NOT NULL 過濾

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ogt
2026-04-20 20:38:04 +08:00
parent 48804553cd
commit 74de1dc68a
2 changed files with 4 additions and 1 deletions

View File

@@ -22,4 +22,5 @@ beautifulsoup4
lxml
prometheus-client
python-telegram-bot[job-queue]
paramiko # ADR-013: AIOps SSH 跳板修復
paramiko # ADR-013: AIOps SSH 跳板修復
python-pptx # ADR-014: PPT 簡報系統

View File

@@ -967,6 +967,8 @@ def query_vendor_bcg_data(yr: int = None, mo: int = None) -> dict:
SUM(profit_amt_curr) AS profit
FROM monthly_summary_analysis
WHERE sales_amt_curr > 0
AND brand_name IS NOT NULL AND brand_name != ''
AND area_name IS NOT NULL AND area_name != ''
{yr_filter} {mo_filter}
GROUP BY brand_name, area_name
ORDER BY sales DESC LIMIT 100