This commit is contained in:
JIAKUNHAO 2022-11-24 16:50:37 +08:00
parent 384168f238
commit 4ef8d20582

View File

@ -73,8 +73,7 @@ manager = WebsocketUtil()
def write(id: str, ws: List):
with open(f"{id}.pkl", "wb") as f:
wsdump = pickle.dump(ws)
f.write(wsdump)
wsdump = pickle.dump(ws, f)
def read(id: str):