plugin that preprocess shift data is corrected

parent 068b2975
......@@ -93,9 +93,11 @@ class ReadJSShifts(plugin.InputPreparationPlugin, TimeSupportMixin):
breakStart, breakEnd = timePair
timeStartList.append(breakEnd)
timeEndList.insert(0, breakStart)
#if it is the current row is an extended row for the information belonging to a resource, and no resource name is entered
if line[0]:
entityID = line[0].split("-")[0]
else:
entityID = ""
if str(entityID) == '':
#take it as a continuation for the last entered resource
for index, start in enumerate(timeStartList):
......
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