1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fixes issue with daily searcher setting episodes past todays date to wanted.

This commit is contained in:
echel0n 2014-05-18 09:54:03 -07:00
parent de20d13c61
commit 1f55b11b7d

View File

@ -54,11 +54,12 @@ class DailySearcher():
logger.log(u"Checking to see if any shows have wanted episodes available for the last week ...")
curDate = datetime.date.today() - datetime.timedelta(weeks=1)
fromDate = datetime.date.today() - datetime.timedelta(weeks=1)
toDate = datetime.date.today()
myDB = db.DBConnection()
sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE status in (?,?) AND airdate > ?",
[common.UNAIRED, common.WANTED, curDate.toordinal()])
sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE status in (?,?) AND airdate >= ? AND airdate < ?",
[common.UNAIRED, common.WANTED, fromDate.toordinal(), toDate.toordinal()])
todaysEps = {}
for sqlEp in sqlResults: