bugfix
This commit is contained in:
parent
9f001cbf9b
commit
82dacf619e
@ -6,6 +6,7 @@ import codecs
|
|||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
import json
|
import json
|
||||||
import asyncio
|
import asyncio
|
||||||
|
from traceback import fromat_exc
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import time
|
import time
|
||||||
@ -204,6 +205,7 @@ def initEnv():
|
|||||||
g.quotedstr = quotedstr
|
g.quotedstr = quotedstr
|
||||||
g.save_file = save_file
|
g.save_file = save_file
|
||||||
g.realpath = realpath
|
g.realpath = realpath
|
||||||
|
g.format_exc = format_exc
|
||||||
|
|
||||||
def set_builtins():
|
def set_builtins():
|
||||||
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]
|
all_builtins = [ i for i in dir(builtins) if not i.startswith('_')]
|
||||||
|
@ -118,6 +118,9 @@ class WsData:
|
|||||||
def del_node(self, 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_nodes(self):
|
||||||
|
return self.nodes
|
||||||
|
|
||||||
def get_node(self, id):
|
def get_node(self, id):
|
||||||
return self.nodes.get(id)
|
return self.nodes.get(id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user