feat: 装备修改保存
This commit is contained in:
parent
cf972e6839
commit
63b1f0f10b
|
|
@ -203,10 +203,20 @@ def create_app():
|
||||||
nodes = []
|
nodes = []
|
||||||
params = {}
|
params = {}
|
||||||
status = {}
|
status = {}
|
||||||
|
uuids = []
|
||||||
|
first_uuid = next((x['uuid'] for x in work_content.content if x.get("type") == "first"), "")
|
||||||
|
if not first_uuid:
|
||||||
|
work_log.status = DB.WorkLogsStatus.FAILED
|
||||||
|
await work_log.save()
|
||||||
|
app.state.tasks.pop(task_id, None)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for x in work_content.content:
|
for x in work_content.content:
|
||||||
node_id = x["uuid"]
|
node_id = x["uuid"]
|
||||||
node_type = x["type"]
|
node_type = x["type"]
|
||||||
node_info = x["detail"]
|
node_info = x["detail"]
|
||||||
|
node_edge = x.get("edge")
|
||||||
params[node_id] = node_info
|
params[node_id] = node_info
|
||||||
status[node_id] = "wait"
|
status[node_id] = "wait"
|
||||||
node_class_map = {
|
node_class_map = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue