From 30105f0db94f4593c500eb853dbfb6d593abc532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 17 Feb 2009 01:55:25 +0100 Subject: In some cases the SQL-search does the right thing ;) --- portato/db/sql.py | 1 + 1 file changed, 1 insertion(+) (limited to 'portato/db/sql.py') diff --git a/portato/db/sql.py b/portato/db/sql.py index ca01fd0..bee8a4a 100644 --- a/portato/db/sql.py +++ b/portato/db/sql.py @@ -231,6 +231,7 @@ class SQLDatabase (Database): if not restrict: self._restrict = "" else: + restrict = restrict.replace(".*","%").replace(".","_") self._restrict = "AND name LIKE '%%%s%%'" % restrict restrict = property(get_restrict, set_restrict) -- cgit v1.2.3