summaryrefslogtreecommitdiff
path: root/portato/db
diff options
context:
space:
mode:
Diffstat (limited to 'portato/db')
-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 f3b93f0..a891e1a 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -261,7 +261,7 @@ class SQLDatabase (Database):
if self._type & self.SEARCH_NAME:
if "/" in restrict:
- rest = "(name LIKE '%s%%' AND cat LIKE '%s')" % (pkg, cat)
+ rest = "(name LIKE '%s%%' AND cat LIKE '%s')" % restrict.split("/",1)
else:
rest = "(name LIKE '%%%(restrict)s%%' OR cat LIKE '%(restrict)s%%')" % {"restrict":restrict}