From a5d54b8848a288cbeb08ea28e827d279b81b9edc Mon Sep 17 00:00:00 2001 From: Phil Borman Date: Fri, 30 Jun 2017 10:42:25 +0200 Subject: [PATCH] Code tidying --- lazylibrarian/searchmag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lazylibrarian/searchmag.py b/lazylibrarian/searchmag.py index a50afaaff..efbbaf58e 100644 --- a/lazylibrarian/searchmag.py +++ b/lazylibrarian/searchmag.py @@ -450,8 +450,8 @@ def search_magazines(mags=None, reset=False): # and status has been user-set ( we only delete the "Skipped" ones ) # In "wanted" table it might be already snatched/downloading/processing - mag_entry = myDB.match('SELECT * from ? WHERE NZBtitle=? and NZBprov=?', - (insert_table, nzbtitle, nzbprov)) + mag_entry = myDB.match('SELECT * from %s WHERE NZBtitle=? and NZBprov=?' % insert_table, + (nzbtitle, nzbprov)) if not mag_entry: controlValueDict = { "NZBtitle": nzbtitle,