mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-22 11:13:28 +00:00
Experienced the duplicate entry error for todays daily_schedule error. Trying something different.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user