mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05: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
@ -129,7 +129,7 @@ class MainSanityCheck(db.DBSanityCheck):
|
|||||||
curDate = datetime.date.today()
|
curDate = datetime.date.today()
|
||||||
|
|
||||||
sqlResults = self.connection.select(
|
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:
|
for cur_orphan in sqlResults:
|
||||||
logger.log(u"UNAIRED episode detected! episode_id: " + str(cur_orphan["episode_id"]) + " showid: " + str(
|
logger.log(u"UNAIRED episode detected! episode_id: " + str(cur_orphan["episode_id"]) + " showid: " + str(
|
||||||
|
Loading…
Reference in New Issue
Block a user