From c2233047b847551d874570508fa361295c2f25a5 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 4 Sep 2022 00:08:35 +0800 Subject: [PATCH] fix a bug --- defs/player.py | 1 + 1 file changed, 1 insertion(+) diff --git a/defs/player.py b/defs/player.py index 4d74e7c..a27e1d4 100644 --- a/defs/player.py +++ b/defs/player.py @@ -28,6 +28,7 @@ class Player: def __init__(self, uid: str): self.uid = uid self.time = 0 + self.all_char = [] if not exists(PLAYER_PATH / uid / f"{uid}.json"): return with open(PLAYER_PATH / uid / f"{uid}.json", "r", encoding="utf-8") as fp: