From 0830de89cd4eaf1c14e4e1dd38c0977157dca6ac Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 18 May 2014 10:14:21 -0700 Subject: [PATCH] Corrected a sqlite syntax error --- sickbeard/dailysearcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/dailysearcher.py b/sickbeard/dailysearcher.py index e0f4c2d5..1eaa6e21 100644 --- a/sickbeard/dailysearcher.py +++ b/sickbeard/dailysearcher.py @@ -55,10 +55,10 @@ class DailySearcher(): logger.log(u"Checking to see if any shows have wanted episodes available for the last week ...") fromDate = datetime.date.today() - datetime.timedelta(weeks=1) - toDate = datetime.date.today() + toDate = datetime.date.today() + datetime.timedelta(days=1) myDB = db.DBConnection() - sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE status in (?,?) AND airdate >= ? AND airdate =< ?", + sqlResults = myDB.select("SELECT * FROM tv_episodes WHERE status in (?,?) AND airdate >= ? AND airdate < ?", [common.UNAIRED, common.WANTED, fromDate.toordinal(), toDate.toordinal()]) todaysEps = {}