mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-15 22:05:02 -05:00
Corrected a sqlite syntax error
This commit is contained in:
parent
1195e07f7b
commit
0830de89cd
@ -55,10 +55,10 @@ class DailySearcher():
|
|||||||
logger.log(u"Checking to see if any shows have wanted episodes available for the last week ...")
|
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)
|
fromDate = datetime.date.today() - datetime.timedelta(weeks=1)
|
||||||
toDate = datetime.date.today()
|
toDate = datetime.date.today() + datetime.timedelta(days=1)
|
||||||
|
|
||||||
myDB = db.DBConnection()
|
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()])
|
[common.UNAIRED, common.WANTED, fromDate.toordinal(), toDate.toordinal()])
|
||||||
|
|
||||||
todaysEps = {}
|
todaysEps = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user