mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-23 03:33:24 +00:00
Add files via upload
This commit is contained in:
@@ -330,13 +330,15 @@ class PseudoChannel():
|
|||||||
* If this doesn't apply, simply move on to the regular "checks"
|
* If this doesn't apply, simply move on to the regular "checks"
|
||||||
*
|
*
|
||||||
'''
|
'''
|
||||||
|
time1A=prevEndTime.strftime('%H:%M')
|
||||||
|
time1A_comp = datetime.datetime.strptime(time1A, '%H:%M') # there was an issue with the date changing to 1/2, so we had to do this for correct comparison
|
||||||
timeset=[datetime.time(h,m).strftime("%H:%M") for h,m in itertools.product(xrange(0,24),xrange(0,60,int(self.OVERLAP_GAP)))]
|
timeset=[datetime.time(h,m).strftime("%H:%M") for h,m in itertools.product(xrange(0,24),xrange(0,60,int(self.OVERLAP_GAP)))]
|
||||||
timeset_last = timeset[-1]
|
timeset_last = timeset[-1]
|
||||||
theTimeSetInterval_last = datetime.datetime.strptime(timeset_last, '%H:%M')
|
theTimeSetInterval_last = datetime.datetime.strptime(timeset_last, '%H:%M')
|
||||||
print "++++ Previous End Time: ", prevEndTime
|
print "++++ Previous End Time: ", time1A_comp
|
||||||
print "++++ Last Element of the Day: ", theTimeSetInterval_last
|
print "++++ Last Element of the Day: ", theTimeSetInterval_last
|
||||||
|
|
||||||
if prevEndTime > theTimeSetInterval_last:
|
if time1A_comp > theTimeSetInterval_last:
|
||||||
print "++++ We are starting a show with the new day. Using first element of the next day"
|
print "++++ We are starting a show with the new day. Using first element of the next day"
|
||||||
theTimeSetInterval = datetime.datetime.strptime(timeset[0], '%H:%M') #This must be the element we are looking for
|
theTimeSetInterval = datetime.datetime.strptime(timeset[0], '%H:%M') #This must be the element we are looking for
|
||||||
newStartTime = theTimeSetInterval
|
newStartTime = theTimeSetInterval
|
||||||
|
|||||||
Reference in New Issue
Block a user