Added more logic to try and remove all previously scheduled items when generating a new schedule.

This commit is contained in:
Justin Emter
2017-12-15 09:40:49 -08:00
parent 4659f6bb11
commit 197eac55e5

View File

@@ -373,8 +373,11 @@ class PseudoChannel():
print("#### Generating Daily Schedule")
logging.info("##### Dropping previous daily_schedule database")
"""A fix for the duplicate entries problem that comes up occasionally."""
sleep(5)
self.db.remove_all_daily_scheduled_items()
sleep(5)
self.db.drop_daily_schedule_table()
sleep(1)
sleep(5)
self.db.create_daily_schedule_table()
sleep(1)
if self.USING_COMMERCIAL_INJECTION: