minor corrections to ReadJSSkills and ReadJSWIP

parent 528a0116
......@@ -29,6 +29,8 @@ class ReadJSSkills(plugin.InputPreparationPlugin):
if not PBId:
continue
skills=PBitem[1].replace(" ","").split(';')
if len(skills)==1:
PBitem[1].replace(" ","").split(',')
node[PBId]={
"_class": "Dream.Operator",
"capacity": 1,
......
......@@ -38,7 +38,7 @@ class ReadJSWIP(ReadJSWorkPlan.ReadJSWorkPlan, TimeSupportMixin):
BOM = data["input"]["BOM"] = {}
wip = BOM.get("WIP",{})
if not wip:
wip = data["input"]["WIP"] = {}
wip = data["input"]["BOM"]["WIP"] = {}
if WIPdata:
WIPdata.pop(0) # pop the column names
for WIPitem in WIPdata:
......
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