diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-23 00:43:40 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-04-23 00:43:40 +0200 |
commit | d89a5d18378a79b4f9fb6b6738f2a5e008539a3c (patch) | |
tree | 6d809ec62868c90428856a974c7a2c1e109d1589 /portato/db | |
parent | 907de24260d48e10ba67f92c13a163de895af8da (diff) | |
download | portato-d89a5d18378a79b4f9fb6b6738f2a5e008539a3c.tar.gz portato-d89a5d18378a79b4f9fb6b6738f2a5e008539a3c.tar.bz2 portato-d89a5d18378a79b4f9fb6b6738f2a5e008539a3c.zip |
Small error in sqldb
Diffstat (limited to 'portato/db')
-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 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} |