diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-03-03 21:38:21 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-03-03 21:38:21 +0100 |
commit | 6a6aba15ba92c805fe35da7dcbdaa37bacccb6fd (patch) | |
tree | af67e8eeb5bd3ae257b1f6e87997b0090082d3c5 /portato | |
parent | 604bad93c0eecc031ac976cd8665f257c030d194 (diff) | |
download | portato-6a6aba15ba92c805fe35da7dcbdaa37bacccb6fd.tar.gz portato-6a6aba15ba92c805fe35da7dcbdaa37bacccb6fd.tar.bz2 portato-6a6aba15ba92c805fe35da7dcbdaa37bacccb6fd.zip |
Fix sql search
Diffstat (limited to '')
-rw-r--r-- | portato/db/sql.py | 2 |
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} |