ws
This commit is contained in:
parent
384168f238
commit
4ef8d20582
@ -73,8 +73,7 @@ manager = WebsocketUtil()
|
|||||||
|
|
||||||
def write(id: str, ws: List):
|
def write(id: str, ws: List):
|
||||||
with open(f"{id}.pkl", "wb") as f:
|
with open(f"{id}.pkl", "wb") as f:
|
||||||
wsdump = pickle.dump(ws)
|
wsdump = pickle.dump(ws, f)
|
||||||
f.write(wsdump)
|
|
||||||
|
|
||||||
|
|
||||||
def read(id: str):
|
def read(id: str):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user