fix: add python-pptx to requirements + fix BCG empty name filter
Some checks failed
CD Pipeline / deploy (push) Has been cancelled
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:
@@ -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 簡報系統
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user