From d89a5d18378a79b4f9fb6b6738f2a5e008539a3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 23 Apr 2010 00:43:40 +0200 Subject: Small error in sqldb --- portato/db/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'portato/db/sql.py') 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} -- cgit v1.2.3