summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 581ebc4..2de2795 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -263,7 +263,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}