From 78ec7b5b084da0984d771ef0b28b4705d13d7e3b Mon Sep 17 00:00:00 2001 From: OoO Date: Thu, 30 Apr 2026 13:58:41 +0800 Subject: [PATCH] =?UTF-8?q?chore(templates):=20=E7=A7=BB=E9=99=A4=20databa?= =?UTF-8?q?se=20=E7=9B=AE=E9=8C=84=E9=8C=AF=E4=BD=8D=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- database/edm_dashboard.html | 145 ------------------------ tests/test_phase3f_cleanup_contracts.py | 1 + 2 files changed, 1 insertion(+), 145 deletions(-) delete mode 100644 database/edm_dashboard.html diff --git a/database/edm_dashboard.html b/database/edm_dashboard.html deleted file mode 100644 index fc662bf..0000000 --- a/database/edm_dashboard.html +++ /dev/null @@ -1,145 +0,0 @@ - -{% macro slugify(text) -%} -{{ text|string|replace(' ', '_')|replace(':', '')|replace('!', '')|replace('?', '')|replace('/', '')|replace('&', '')|replace('(', '')|replace(')', '') }} -{%- endmacro %} - - - - - MOMO 限時搶購監控 - - - - - - -
-
-
-

🔥 限時搶購監控儀表板

-

- 活動時間: {{ activity_time }} | - 最後更新: {{ last_update }} | - 商品總數: {{ total_edm_products }} -

-
-
- - -
-
- - - - -
- {% for slot, stats in slot_stats.items() %} - {% set items = grouped_items.get(slot, []) %} - {% set slot_id = slugify(slot) %} -
- - -
- 📊 時段統計: - 新品: {{ stats['new'] }} - 漲價: {{ stats['up'] }} - 降價: {{ stats['down'] }} - 下架: {{ stats.get('delisted_last_run', 0) }} -
- -
- {% for item in items %} -
-
-
-
- - {{ item.name }} - -
-
- ${{ item.price }} -
- {% if item.status_change == 'NEW' %} - NEW - {% elif item.status_change == 'PRICE_DOWN' %} - ↘ 降價 - {% elif item.status_change == 'PRICE_UP' %} - ↗ 漲價 - {% elif item.status_change == 'DELISTED' %} - 下架 - {% endif %} -
-
-
- 分類: {{ item.main_category or '未分類' }} -
- 頻次: {{ item.frequency }} 次 -
-
-
-
- {% endfor %} -
-
- {% endfor %} -
-
- - - - - \ No newline at end of file diff --git a/tests/test_phase3f_cleanup_contracts.py b/tests/test_phase3f_cleanup_contracts.py index cf7f9b7..a0b39e5 100644 --- a/tests/test_phase3f_cleanup_contracts.py +++ b/tests/test_phase3f_cleanup_contracts.py @@ -83,6 +83,7 @@ def test_tracked_backup_artifacts_stay_removed(): forbidden_artifacts = [ "app.py.backup_login_required", "vendor_stockout_list.html.backup", + "database/edm_dashboard.html", ] assert [path for path in forbidden_artifacts if (ROOT / path).exists()] == []