Commit 7f39cc33 authored by echel0n's avatar echel0n
Browse files

Fixed issue #224 - backlog searches not working

parent 088906ef
# Changelog
- * a703ade - 2018-05-27: Refactored SiCKRAGE API class
- * 6f42ab3 - 2018-05-31: Fixed issue #224 - backlog searches not working
- * 088906e - 2018-05-27: Refactored SiCKRAGE API class
- * 39debf7 - 2018-05-27: Added Google drive API endpoints
- * 4dd25e6 - 2018-05-27: Migrated from oauth2 client credential grant to password grant Migrated SiCKRAGE API endpoints
- * 510fe7d - 2018-05-26: Misc changes/fixes for database calls
......
......@@ -80,7 +80,7 @@ class BacklogSearcher(object):
if not which_shows and self.forced:
sickrage.app.log.info("Running limited backlog on missed episodes " + str(
sickrage.app.config.backlog_days) + " day(s) and older only")
sickrage.app.config.backlog_days) + " day(s) old")
from_date = datetime.date.today() - datetime.timedelta(days=sickrage.app.config.backlog_days)
else:
sickrage.app.log.info('Running full backlog search on missed episodes for selected shows')
......@@ -114,7 +114,7 @@ class BacklogSearcher(object):
# check through the list of statuses to see if we want any
wanted = []
for result in (x for x in sickrage.app.main_db.get_many('tv_episodes', show.indexerid) if
x['season'] > 0 and datetime.date.today().toordinal() > x['airdate'] <= from_date.toordinal()):
x['season'] > 0 and datetime.date.today().toordinal() > x['airdate'] >= from_date.toordinal()):
curStatus, curQuality = Quality.splitCompositeStatus(int(result["status"] or -1))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment