diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-07-06 21:27:15 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-07-06 21:27:15 +0200 |
commit | 7191bedb01980674fc99ee5a29042c90a0177101 (patch) | |
tree | 470156b54dbda2e8f6f4a472402606a5d901aa6c | |
parent | 7b831112022ce45c6c683bd5c9c9b41a8c3c6015 (diff) | |
download | portato-7191bedb01980674fc99ee5a29042c90a0177101.tar.gz portato-7191bedb01980674fc99ee5a29042c90a0177101.tar.bz2 portato-7191bedb01980674fc99ee5a29042c90a0177101.zip |
format strings need tuples
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 2de2795..889789f 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')" % restrict.split("/",1) + rest = "(name LIKE '%s%%' AND cat LIKE '%s')" % tuple(restrict.split("/",1)) else: rest = "(name LIKE '%%%(restrict)s%%' OR cat LIKE '%(restrict)s%%')" % {"restrict":restrict} |