Commit 51437595 authored by panos's avatar panos

Bug fixed in the InsertWIP plugin

parent dd44070d
......@@ -13,7 +13,7 @@ class InsertWIP(plugin.InputPreparationPlugin):
"""
WIP = data["input"].get("BOM",{}).get("WIP", {})
for partID, work in WIP.iteritems():
stationID = work.get("station", None)
stationID = work.get("station", None).replace(' ','').split('-')[0]
if not stationID:
break
node = data["graph"]["node"].get(stationID, {})
......
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