diff --git a/config.py b/config.py index ff5e4f6..a6badfe 100644 --- a/config.py +++ b/config.py @@ -414,7 +414,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '') # ========================================== # 系統版本與路徑 # ========================================== -SYSTEM_VERSION = "V10.806" +SYSTEM_VERSION = "V10.807" LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log') public_url = PUBLIC_URL # 用於模板顯示 diff --git a/templates/sales_analysis.html b/templates/sales_analysis.html index 5c7a035..3a63ad3 100644 --- a/templates/sales_analysis.html +++ b/templates/sales_analysis.html @@ -690,7 +690,7 @@
-
全站類別佔比
+
類別業績佔比
@@ -782,7 +782,7 @@
-
每週業績趨勢 (全年度)
+
每週業績趨勢({{ analysis_period.label }})
@@ -815,7 +815,7 @@
- 商品作戰清單 Top 1000 + 商品作戰清單({{ analysis_period.label }})
diff --git a/tests/test_analysis_period_linkage.py b/tests/test_analysis_period_linkage.py index 3188299..3faff66 100644 --- a/tests/test_analysis_period_linkage.py +++ b/tests/test_analysis_period_linkage.py @@ -301,6 +301,8 @@ def test_sales_frontend_uses_live_period_linked_api_routes(): assert "columns," in script assert 'data-field="product_id"' in template assert 'data-field="amount"' in template + assert "每週業績趨勢({{ analysis_period.label }})" in template + assert "全年度" not in template assert "fetch(`/api/yoy?" not in script assert "'/api/sales_table?'" not in script