This commit is contained in:
yumoqing 2024-10-09 18:59:22 +08:00
parent 7001d02a34
commit 9f001cbf9b

View File

@ -116,7 +116,7 @@ class WsData:
self.nodes[node.id] = node
def del_node(self, node):
self.nodes = {k,v for k,v in self.nodes.items() if k!=node.id}
self.nodes = {k:v for k,v in self.nodes.items() if k!=node.id}
def get_node(self, id):
return self.nodes.get(id)