summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 b794d08..6c95bb3 100644
--- a/portato/db/sql.py
+++ b/portato/db/sql.py
@@ -251,7 +251,7 @@ class SQLDatabase (Database):
if "/" in restrict:
cat,pkg = restrict.split("/")
- self._restrict = "AND name LIKE '%%%s%%' AND cat LIKE '%s'" % (pkg, cat)
+ self._restrict = "AND name LIKE '%s%%' AND cat LIKE '%s'" % (pkg, cat)
else:
self._restrict = "AND (name LIKE '%%%(restrict)s%%' OR cat LIKE '%(restrict)s%%')" % {"restrict":restrict}