summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-07-06 21:27:15 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-07-06 21:27:15 +0200
commit7191bedb01980674fc99ee5a29042c90a0177101 (patch)
tree470156b54dbda2e8f6f4a472402606a5d901aa6c
parent7b831112022ce45c6c683bd5c9c9b41a8c3c6015 (diff)
downloadportato-7191bedb01980674fc99ee5a29042c90a0177101.tar.gz
portato-7191bedb01980674fc99ee5a29042c90a0177101.tar.bz2
portato-7191bedb01980674fc99ee5a29042c90a0177101.zip
format strings need tuples
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 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}