Commit 95b15075 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

WorkflowTool.py: modify the return type of getChainsByType from a tuple in a list to a tuple.

parent 70c35728
...@@ -629,7 +629,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -629,7 +629,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
def getChainsByType(self): def getChainsByType(self):
type_workflow_dict = {} type_workflow_dict = {}
for type_id, workflow_id_list in self._chains_by_type.iteritems(): for type_id, workflow_id_list in self._chains_by_type.iteritems():
type_workflow_dict.setdefault(type_id, []).append(workflow_id_list) type_workflow_dict.setdefault(type_id, ())
type_workflow_dict[type_id] = type_workflow_dict[type_id] + workflow_id_list
return type_workflow_dict return type_workflow_dict
# For Chains By Type Repair Tool: # For Chains By Type Repair Tool:
......
Markdown is supported
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