mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-20 18:23:44 +00:00
Altered SQL for removing daily_schedule data before adding newly generated data.
This commit is contained in:
@@ -588,6 +588,8 @@ class PseudoChannel():
|
||||
|
||||
print("#### Generating Daily Schedule")
|
||||
|
||||
logging.info("##### Dropping previous daily_schedule database")
|
||||
|
||||
if self.USING_COMMERCIAL_INJECTION:
|
||||
self.commercials = PseudoChannelCommercial(
|
||||
self.db.get_commercials(),
|
||||
|
||||
@@ -101,6 +101,10 @@ class PseudoChannelDatabase():
|
||||
|
||||
pass
|
||||
|
||||
def drop_daily_schedule(self):
|
||||
|
||||
pass
|
||||
|
||||
def remove_all_scheduled_items(self):
|
||||
|
||||
sql = "DELETE FROM schedule WHERE id > -1"
|
||||
@@ -111,7 +115,7 @@ class PseudoChannelDatabase():
|
||||
|
||||
def remove_all_daily_scheduled_items(self):
|
||||
|
||||
sql = "DELETE FROM daily_schedule WHERE id > -1"
|
||||
sql = "DELETE FROM daily_schedule"
|
||||
|
||||
self.cursor.execute(sql)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user