now route is updated correctly

parent c722036a
...@@ -25,7 +25,6 @@ class MergeSteps(plugin.InputPreparationPlugin): ...@@ -25,7 +25,6 @@ class MergeSteps(plugin.InputPreparationPlugin):
route = component.get("route", []) route = component.get("route", [])
updatedRoute = [] updatedRoute = []
technologySequence = [] technologySequence = []
idxToMerge = None
for index, step in enumerate(route): for index, step in enumerate(route):
technology = step["technology"] technology = step["technology"]
technology = technology.split("-")[0] technology = technology.split("-")[0]
...@@ -46,6 +45,7 @@ class MergeSteps(plugin.InputPreparationPlugin): ...@@ -46,6 +45,7 @@ class MergeSteps(plugin.InputPreparationPlugin):
step["operator"]["processing"] = [tempOperator] step["operator"]["processing"] = [tempOperator]
step["operator"]["load"] = [tempOperator] step["operator"]["load"] = [tempOperator]
'''find out if there is there is any previous step to merge with''' '''find out if there is there is any previous step to merge with'''
idxToMerge = None
if technologySequence: if technologySequence:
if technology == technologySequence[-1]: if technology == technologySequence[-1]:
if len(route[index-1]["technology"].split("-")): if len(route[index-1]["technology"].split("-")):
......
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