1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-13 03:22:22 -05:00

Fix to ensure unaired fix for mainDB only happens for shows without a already set UNAIRED status

This commit is contained in:
echel0n 2014-05-18 10:19:51 -07:00
parent 0830de89cd
commit cf18b3eec8

View File

@ -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(