修复 scan_terminal_filters 残留语法错误
This commit is contained in:
@@ -389,7 +389,7 @@ function PolyWeatherTerminal({
|
||||
|
||||
const filteredRegionRows = useMemo(() => {
|
||||
return rows.filter(
|
||||
(row) => resolveTradingRegionKey(row) === selectedRegionKey,
|
||||
(row) => getCityRegion(row) === selectedRegionKey,
|
||||
);
|
||||
}, [rows, selectedRegionKey]);
|
||||
|
||||
|
||||
@@ -48,7 +48,6 @@ def normalize_scan_terminal_filters(
|
||||
or "today",
|
||||
"limit": max(1, min(safe_int(raw.get("limit"), 25), 200)),
|
||||
"max_spread": max(0.0, _safe_float(raw.get("max_spread")) or 0.03),
|
||||
in {"1", "true", "yes", "on"},
|
||||
}
|
||||
trading_region = str(raw.get("trading_region") or "").strip().lower()
|
||||
if trading_region and trading_region not in ("all", ""):
|
||||
|
||||
Reference in New Issue
Block a user