ReadJSSkills corrected

parent 1fb999f2
......@@ -5,7 +5,6 @@ import random
import operator
from datetime import datetime
import copy
import routeQuery
from datetime import datetime
from dream.plugins import plugin
......@@ -18,12 +17,13 @@ class ReadJSSkills(plugin.InputPreparationPlugin):
def preprocess(self, data):
""" Read the operator and the tasks they can perform and adds them to them to the graph.
"""
PBData=data['input'].get('operator_skill_spreadsheet', None)
PBData=data['input'].get('operator_skills_spreadsheet', None)
node=data['graph']['node']
if PBData:
PBData.pop(0) # pop the column names
for PBitem in PBData:
PBId=PBitem[0]
if PBId:
PBId = PBId.split("-")[0]
# in case there is no id, do not process the element
if not PBId:
......
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