Experienced the duplicate entry error for todays daily_schedule error. Trying something different.

This commit is contained in:
Justin Emter
2017-08-15 10:53:54 -07:00
parent c903a1c6d7
commit 4dbf5b4c07
2 changed files with 26 additions and 4 deletions

View File

@@ -596,6 +596,10 @@ class PseudoChannel():
logging.info("##### Dropping previous daily_schedule database")
self.db.remove_all_daily_scheduled_items()
sleep(1)
if self.USING_COMMERCIAL_INJECTION:
self.commercials = PseudoChannelCommercial(
self.db.get_commercials(),
@@ -764,8 +768,6 @@ class PseudoChannel():
previous_episode = None
self.db.remove_all_daily_scheduled_items()
for entry in self.MEDIA:
#print entry.natural_end_time