From 7191bedb01980674fc99ee5a29042c90a0177101 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Tue, 6 Jul 2010 21:27:15 +0200 Subject: format strings need tuples --- 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 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} -- cgit v1.2.3-54-g00ecf master The standard unix password manager + extensionsRené 'Necoro' Neumann
summaryrefslogtreecommitdiff
path: root/Makefile (unfollow)
Commit message (Expand)AuthorFilesLines
2017-02-25man: document system extensionsJason A. Donenfeld1-2/+3