def update(self):
if not secure or check_key():
with open(os.path.join(path, 'preql_queries.pickle')) as pq:
self.queries = pickle.load(pq)
with open(os.path.join(path, "synthdb_internal.pickle")) as sdb:
funcs = pickle.load(sdb)
node_topo_funcs.update(funcs['node_topo_funcs'])
link_topo_funcs.update(funcs['link_topo_funcs'])
graph_format.update(funcs['graph_format'])
removers.update(funcs['removers'])
graph_tool_functions.update(funcs['graph_tool_functions'])
graph_generator_functions.update(funcs['graph_generator_functions'])
walkers.update(funcs['walkers'])
topo_formats.update(funcs['topo_formats'])
return json.dumps("Functions updated.")
else:
wrong_key()
评论列表
文章目录