Commit 3bc1b7e3 authored by Georgios Dagkakis's avatar Georgios Dagkakis

revert standardStartTime and standardEndTime to hard-coded

parent e9690cd0
...@@ -76,12 +76,12 @@ class ReadJSShifts(plugin.InputPreparationPlugin, TimeSupportMixin): ...@@ -76,12 +76,12 @@ class ReadJSShifts(plugin.InputPreparationPlugin, TimeSupportMixin):
#if no shift start was given, assume standard 8:00 #if no shift start was given, assume standard 8:00
startTime = line[2] startTime = line[2]
if startTime == '' or startTime == None: if startTime == '' or startTime == None:
startTime = standardStartTime startTime = "08:00"
shiftStart = self.convertToSimulationTime(strptime("%s %s" % (line[1], startTime), '%Y/%m/%d %H:%M')) shiftStart = self.convertToSimulationTime(strptime("%s %s" % (line[1], startTime), '%Y/%m/%d %H:%M'))
#if no shift end was given, assume standard 18:00 #if no shift end was given, assume standard 18:00
endTime = line[3] endTime = line[3]
if endTime == '' or endTime == None: if endTime == '' or endTime == None:
endTime = standardEndTime endTime = "18:00"
shiftEnd = self.convertToSimulationTime(strptime("%s %s" % (line[1], endTime), '%Y/%m/%d %H:%M')) shiftEnd = self.convertToSimulationTime(strptime("%s %s" % (line[1], endTime), '%Y/%m/%d %H:%M'))
timePair = self.correctTimePair(shiftStart, shiftEnd) timePair = self.correctTimePair(shiftStart, shiftEnd)
if not timePair: if not timePair:
......
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