diff --git a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts index a41628b9..1c9957fc 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/removedMonitorRunwayTabs.test.ts @@ -44,9 +44,9 @@ export function runTests() { ); assert( shellPartsSource.includes('"city-list"') && - dashboardSource.includes("scan-mobile-city-list-view") && + dashboardSource.includes("MobileCityPicker") && dashboardSource.includes('setActiveView("city-list")'), - "mobile web should expose the lightweight city-list entry view", + "mobile web should expose the city-list view via MobileCityPicker", ); assert( !dashboardSource.includes('setActiveView("monitor")') && diff --git a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts index 5ac61239..902ccdc9 100644 --- a/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts +++ b/frontend/components/dashboard/scan-terminal/__tests__/stableServerRefreshPolicy.test.ts @@ -37,10 +37,10 @@ export function runTests() { "web auto refresh must read cached scan data instead of forcing a full server scan", ); assert( - dashboardSource.includes("scan-mobile-city-list-view") && + dashboardSource.includes("MobileCityPicker") && dashboardSource.includes("MapCanvas") && - dashboardSource.indexOf("scan-mobile-city-list-view") < dashboardSource.indexOf("scan-map-view"), - "mobile city list should be the lightweight entry before the optional map view", + dashboardSource.indexOf("MobileCityPicker") < dashboardSource.indexOf("MapCanvas"), + "mobile city list should use MobileCityPicker before the optional map view", ); assert( airportEvidenceSource.includes("FOCUS_RUNWAY_PAIRS") && diff --git a/scripts/scan_forum_topics.py b/scripts/scan_forum_topics.py index 8854d48f..6fdea3f0 100644 --- a/scripts/scan_forum_topics.py +++ b/scripts/scan_forum_topics.py @@ -1,7 +1,6 @@ """扫描群组内所有 Forum Topic,打印名称和 thread_id。""" from __future__ import annotations -import json import os import sys from concurrent.futures import ThreadPoolExecutor, as_completed @@ -52,7 +51,7 @@ def main() -> int: print("未设置 TELEGRAM_BOT_TOKEN", file=sys.stderr) return 1 - print(f"扫描群组话题...") + print("扫描群组话题...") topics = [] with ThreadPoolExecutor(max_workers=10) as pool: futures = {pool.submit(_try_get_topic, tid): tid for tid in range(1, 101)}