mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes issue with daily searcher setting episodes past todays date to wanted.
This commit is contained in:
parent
de20d13c61
commit
1f55b11b7d
1 changed files with 4 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue