summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/db/sql.py')
-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