This commit is contained in:
9
app.py
9
app.py
@@ -96,7 +96,7 @@ except Exception as e:
|
||||
|
||||
# 🚩 系統版本定義 (備份與顯示用)
|
||||
# 🚩 2026-05-01 V10.76: Move monthly analysis report onto V2 shell
|
||||
SYSTEM_VERSION = "V10.77"
|
||||
SYSTEM_VERSION = "V10.86"
|
||||
|
||||
# ==========================================
|
||||
# 🔒 SQL Injection 防護函數
|
||||
@@ -378,6 +378,10 @@ from routes.pchome_routes import pchome_bp
|
||||
app.register_blueprint(pchome_bp)
|
||||
sys_log.info("[Blueprint] ✅ pchome_bp 已註冊")
|
||||
|
||||
from routes.market_intel_routes import market_intel_bp
|
||||
app.register_blueprint(market_intel_bp)
|
||||
sys_log.info("[Blueprint] ✅ market_intel_bp 已註冊")
|
||||
|
||||
# V-Fix: 註冊 slugify 函數供模板使用(實作搬至 utils/text_helpers.py)
|
||||
from utils.text_helpers import slugify # noqa: E402
|
||||
|
||||
@@ -398,6 +402,9 @@ EXPECTED_METADATA_TABLES = {
|
||||
'import_jobs', 'import_config', 'notification_templates', 'ppt_reports',
|
||||
'vendor_stockout', 'vendor_list', 'vendor_emails', 'email_send_log',
|
||||
'realtime_sales_monthly',
|
||||
'market_platforms', 'market_campaigns', 'market_campaign_snapshots',
|
||||
'market_campaign_products', 'market_product_price_history',
|
||||
'market_product_matches', 'market_crawler_runs',
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user