mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix to ensure unaired fix for mainDB only happens for shows without a already set UNAIRED status
This commit is contained in:
parent
0830de89cd
commit
cf18b3eec8
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class MainSanityCheck(db.DBSanityCheck):
|
|||
curDate = datetime.date.today()
|
||||
|
||||
sqlResults = self.connection.select(
|
||||
"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? ", [curDate.toordinal()])
|
||||
"SELECT episode_id, showid FROM tv_episodes WHERE airdate > ? AND status != ?", [curDate.toordinal(), common.UNAIRED])
|
||||
|
||||
for cur_orphan in sqlResults:
|
||||
logger.log(u"UNAIRED episode detected! episode_id: " + str(cur_orphan["episode_id"]) + " showid: " + str(
|
||||
|
|
Loading…
Reference in a new issue