minor corrections to ReadJSSkills and ReadJSWIP

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