summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-03-05 02:42:46 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-03-05 02:42:46 +0100
commit22bf1fe929e9997f13d0110cba1347d00fdd21cf (patch)
tree729b63c8f90d18c470078ecc4e78bfacbfa4fe5e /portato/db/sql.py
parentf254bd593f3c1842658f4fb57fa87ed77d9fe993 (diff)
downloadportato-22bf1fe929e9997f13d0110cba1347d00fdd21cf.tar.gz
portato-22bf1fe929e9997f13d0110cba1347d00fdd21cf.tar.bz2
portato-22bf1fe929e9997f13d0110cba1347d00fdd21cf.zip
Added combo box for selecting the search type to main window
Diffstat (limited to '')
-rw-r--r--portato/db/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/portato/db/sql.py b/portato/db/sql.py
index 02ce172..f6e24f0 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -267,7 +267,7 @@ class SQLDatabase (Database):
if self._type & self.SEARCH_DESCRIPTION:
r = "descr LIKE '%%%(restrict)s%%'" % {"restrict":restrict}
- if not rest:
+ if rest:
rest = "(%s OR %s)" % (r, rest)
else:
rest = r