fix a bug
This commit is contained in:
parent
e5aa18dd81
commit
c2233047b8
@ -28,6 +28,7 @@ class Player:
|
|||||||
def __init__(self, uid: str):
|
def __init__(self, uid: str):
|
||||||
self.uid = uid
|
self.uid = uid
|
||||||
self.time = 0
|
self.time = 0
|
||||||
|
self.all_char = []
|
||||||
if not exists(PLAYER_PATH / uid / f"{uid}.json"):
|
if not exists(PLAYER_PATH / uid / f"{uid}.json"):
|
||||||
return
|
return
|
||||||
with open(PLAYER_PATH / uid / f"{uid}.json", "r", encoding="utf-8") as fp:
|
with open(PLAYER_PATH / uid / f"{uid}.json", "r", encoding="utf-8") as fp:
|
||||||
|
Loading…
Reference in New Issue
Block a user