mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 09:48:55 +00:00
Fix references to site table.
This commit is contained in:
@@ -44,7 +44,7 @@ except:
|
||||
|
||||
print(bcolors.HEADER + "\n\nRequestID Threaded Started at {}".format(datetime.datetime.now().strftime("%H:%M:%S")) + bcolors.ENDC)
|
||||
|
||||
cur[0].execute("SELECT value FROM site WHERE setting = 'request_hours'")
|
||||
cur[0].execute("SELECT value FROM settings WHERE setting = 'request_hours'")
|
||||
dbgrab = cur[0].fetchone()
|
||||
request_hours = str(dbgrab[0])
|
||||
cur[0].execute("SELECT DISTINCT(g.id) FROM releases r INNER JOIN groups g ON r.groupid = g.id WHERE r.nzbstatus = 1 AND r.prehashid = 0 AND r.isrequestid = 1 AND r.reqidstatus in (0, -1) OR (r.reqidstatus = -3 AND r.adddate > NOW() - INTERVAL " + request_hours + " HOUR)")
|
||||
|
||||
Reference in New Issue
Block a user