From b408d1ba51c5d570a1bc99244e02b987f5adb0c8 Mon Sep 17 00:00:00 2001 From: mokurin000 <1348292515a@gmail.com> Date: Thu, 31 Jul 2025 20:28:44 +0800 Subject: [PATCH] chore: add util scripts --- utils/get_last_uid.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 utils/get_last_uid.py diff --git a/utils/get_last_uid.py b/utils/get_last_uid.py new file mode 100644 index 0000000..500e0b8 --- /dev/null +++ b/utils/get_last_uid.py @@ -0,0 +1,11 @@ +import json + + +def main(): + with open("players.json", "r", encoding="utf-8") as f: + d = json.load(f) + print(d[-1]["userId"]) + + +if __name__ == "__main__": + main()