From f62d85767a9da4eb9a0b3bcca0d303d31338b7fd Mon Sep 17 00:00:00 2001 From: mutto233 <39921339+mutto233@users.noreply.github.com> Date: Fri, 6 Jul 2018 23:09:58 -0400 Subject: [PATCH] Add files via upload --- both-dir/src/PseudoDailyScheduleController.py | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/both-dir/src/PseudoDailyScheduleController.py b/both-dir/src/PseudoDailyScheduleController.py index 6338a6a..3204ab3 100644 --- a/both-dir/src/PseudoDailyScheduleController.py +++ b/both-dir/src/PseudoDailyScheduleController.py @@ -579,6 +579,17 @@ class PseudoDailyScheduleController(): row[6] if row[11] == "TV Shows" else row[3] ) + + elif (timeBStart - timeBEnd).total_seconds() >= 0 and \ + ((currentTime-timeBStart).total_seconds() >= 0 or (timeBEnd-currentTime).total_seconds() >= 0) : + + print "+++++ DAY SKIP Made the conditional & found item: {}".format(row[6]) + + return self.get_show_photo( + row[13], + row[6] if row[11] == "TV Shows" else row[3] + ) + else: pass @@ -613,12 +624,19 @@ class PseudoDailyScheduleController(): #print timeBStart.minute if (currentTime - timeBStart).total_seconds() >= 0 and \ - (timeBEnd - currentTime).total_seconds() >= 0: + (timeBEnd - currentTime).total_seconds() >= 0 : print "+++++ Made the conditional & found item: {}".format(row[6]) return row[6] + " - " + row[3] if row[11] == "TV Shows" else row[3] + elif (timeBStart - timeBEnd).total_seconds() >= 0 and \ + ((currentTime-timeBStart).total_seconds() >= 0 or (timeBEnd-currentTime).total_seconds() >= 0) : + + print "+++++ DAY SKIP Made the conditional & found item: {}".format(row[6]) + + return row[6] + " - " + row[3] if row[11] == "TV Shows" else row[3] + else: pass