Commit 9b24d077 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in main script

parent 1bd960a2
...@@ -327,12 +327,12 @@ def createObjectInterruptions(): ...@@ -327,12 +327,12 @@ def createObjectInterruptions():
shiftPattern=list(shift.get('shiftPattern', [])) shiftPattern=list(shift.get('shiftPattern', []))
# patch to correct if input has end of shift at the same time of start of next shift # patch to correct if input has end of shift at the same time of start of next shift
# TODO check if the backend should be able to handle this # TODO check if the backend should be able to handle this
for index, element in enumerate(shiftPattern): for index, record in enumerate(shiftPattern):
if element is shiftPattern[-1]: if record is shiftPattern[-1]:
break break
next = shiftPattern[index + 1] next = shiftPattern[index + 1]
if element[1]==next[0]: if record[1]==next[0]:
element[1]=next[1] record[1]=next[1]
shiftPattern.remove(next) shiftPattern.remove(next)
endUnfinished=bool(int(shift.get('endUnfinished', 0))) endUnfinished=bool(int(shift.get('endUnfinished', 0)))
receiveBeforeEndThreshold=float(shift.get('receiveBeforeEndThreshold', 0)) receiveBeforeEndThreshold=float(shift.get('receiveBeforeEndThreshold', 0))
......
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