fix a bug

This commit is contained in:
xtaodada 2022-09-04 00:05:00 +08:00
parent fc253c8422
commit 6c0a5c1c17
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -25,6 +25,7 @@ class Player:
def __init__(self, uid: str):
self.uid = uid
self.time = 0
self.all_char = []
if not exists(LOCAL_DIR / "cache" / f"{uid}__data.json"):
return
with open(LOCAL_DIR / "cache" / f"{uid}__data.json", "r", encoding="utf-8") as fp: