mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2026-01-19 08:23:12 +00:00
Added more logic to try and remove all previously scheduled items when generating a new schedule.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user