Commit 63af9bec authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent e18f4a9e
......@@ -375,17 +375,15 @@ class JFlowServer (object):
elif kwargs["display"] == "graph":
g = workflow.get_execution_graph()
status = self.jsonify_workflow_status(workflow)
input, inputs, components = [], [], []
nodes = []
for node in g.nodes():
if Workflow.INPUT_GRAPH_LABEL in g.node_attributes(node):
nodes.append({"name": node, "type": "input"})
elif Workflow.INPUTS_GRAPH_LABEL in g.node_attributes(node):
nodes.append({"name": node, "type": "inputs"})
elif Workflow.COMPONENT_GRAPH_LABEL in g.node_attributes(node):
status["input_nodes"] = input
status["inputs_nodes"] = inputs
status["components_nodes"] = components
nodes.append({"name": node, "type": "component"})
status["nodes"] = nodes
status["edges"] = g.edges()
return status
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment