part not added to route if still in the starting queue

parent cb8c07f8
...@@ -26,21 +26,21 @@ class ReadJSCompleted(plugin.InputPreparationPlugin): ...@@ -26,21 +26,21 @@ class ReadJSCompleted(plugin.InputPreparationPlugin):
routeConcluded = True routeConcluded = True
route = component.get("route", []) route = component.get("route", [])
for index, step in enumerate(route): for index, step in enumerate(route):
completed = step.get("completed", ) completed = step.get("completed", "No")
if not completed: if completed == "No" or completed == "":
routeConcluded = False routeConcluded = False
# check the WIP and see if the current part already resides there # check the WIP and see if the current part already resides there
if not component["componentID"] in wip.keys(): if not component["componentID"] in wip.keys():
# if there is a previous task # if there is a previous task
if index: if index:
previousStep = route[index-1] previousStep = route[index-1]
# XXX: no entry/exit/stationID is defined
wip[component["componentID"]] = { wip[component["componentID"]] = {
"task_id": previousStep["task_id"], "task_id": previousStep["task_id"],
"station": previousStep["technology"], "station": previousStep["technology"],
"remainingProcessingTime": 0, "remainingProcessingTime": 0,
"sequence": previousStep["sequence"] "sequence": previousStep["sequence"]
} }
break
if routeConcluded: if routeConcluded:
wip[component["componentID"]] = { wip[component["componentID"]] = {
"task_id": step["task_id"], "task_id": step["task_id"],
......
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