From 4a11f7cfcdbc21a2315aad905969d8e115283056 Mon Sep 17 00:00:00 2001 From: bionel Date: Sat, 23 Sep 2017 23:11:05 +0300 Subject: follow ghiunhan naming convention .. for the moment --- src/frontend/gui/sisyphus-gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 691c072..231a0a2 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -95,7 +95,7 @@ class Sisyphus(QtWidgets.QMainWindow): def loadDatabase(self): with sqlite3.connect('/var/lib/sisyphus/db/sisyphus.db') as db: cursor=db.cursor() - filterOut = "'%" + "virtual" + "%'" + FILTEROUT = "'%" + "virtual" + "%'" cursor.execute('''SELECT a.category AS cat, a.name AS pn, @@ -109,7 +109,7 @@ class Sisyphus(QtWidgets.QMainWindow): AND a.slot = i.slot WHERE %s LIKE %s %s AND cat NOT LIKE %s - ''' % (Sisyphus.SEARCHFIELD, Sisyphus.SEARCHTERM, Sisyphus.SEARCHFILTER, filterOut)) + ''' % (Sisyphus.SEARCHFIELD, Sisyphus.SEARCHTERM, Sisyphus.SEARCHFILTER, FILTEROUT)) rows = cursor.fetchall() Sisyphus.PKGCOUNT = len(rows) Sisyphus.PKGSELECTED = 0 -- cgit v1.2.3