From 89d81771809f73ac078b65dbc2cfeadbeeb351fa Mon Sep 17 00:00:00 2001 From: mokurin000 <1348292515a@gmail.com> Date: Sun, 3 Aug 2025 20:48:55 +0800 Subject: [PATCH] chore: load players.json via orjson --- utils/get_last_uid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/get_last_uid.py b/utils/get_last_uid.py index 500e0b8..4b1bdd2 100644 --- a/utils/get_last_uid.py +++ b/utils/get_last_uid.py @@ -1,9 +1,9 @@ -import json +import orjson as json def main(): with open("players.json", "r", encoding="utf-8") as f: - d = json.load(f) + d: list[dict[str, int | str]] = json.loads(f.read()) print(d[-1]["userId"])