Fixed the not-updating-daily-schedule bug.

This commit is contained in:
Justin Emter
2017-08-03 15:00:53 -07:00
parent bc980c91a7
commit e4aab4b004
2 changed files with 7 additions and 1 deletions

View File

@@ -1054,6 +1054,8 @@ if __name__ == '__main__':
def run_task():
global the_daily_schedule
now = datetime.datetime.now()
now_time = now.time().replace(microsecond=0)
@@ -1070,6 +1072,8 @@ if __name__ == '__main__':
pseudo_channel.update_schedule_from_google_calendar()
the_daily_schedule = pseudo_channel.db.get_daily_schedule()
else:
pass
@@ -1078,6 +1082,8 @@ if __name__ == '__main__':
pseudo_channel.make_xml_schedule()
the_daily_schedule = pseudo_channel.db.get_daily_schedule()
pseudo_channel.controller.tv_controller(the_daily_schedule)
t = Timer(1, run_task, ())

View File

@@ -63,6 +63,6 @@ useGoogleCalendar = False
useCommercialInjection = True
dailyUpdateTime = "11:59 AM"
dailyUpdateTime = "3:00 PM"
debug_mode = False