update frontend

This commit is contained in:
bridge
2025-12-06 17:22:17 +08:00
parent 3bb993ccfe
commit 33cf306e58

View File

@@ -140,7 +140,12 @@ def _load_and_assign_regions(game_map: Map, region_coords: dict[int, list[tuple[
def _parse_list(s: str) -> list[int]: def _parse_list(s: str) -> list[int]:
if not s: return [] if not s: return []
try: res = []
return [int(x.strip()) for x in s.split(",") if x.strip()] for x in s.split(","):
except: x = x.strip()
return [] if x:
try:
res.append(int(float(x)))
except (ValueError, TypeError):
pass
return res