fix gbk error

This commit is contained in:
咕谷酱
2025-08-21 21:16:22 +08:00
parent 49aa5edc96
commit 56e83fa098

View File

@@ -80,7 +80,7 @@ class Mod(TypedDict):
API_MODS: dict[Literal[0, 1, 2, 3], dict[str, Mod]] = {}
mods_file = STATIC_DIR / "mods.json"
raw_mods = json.loads(mods_file.read_text())
raw_mods = json.loads(mods_file.read_text(encoding="utf-8"))
for ruleset in raw_mods:
ruleset_mods = {}
for mod in ruleset["Mods"]: