diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-17 01:55:25 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-17 01:55:25 +0100 |
commit | 30105f0db94f4593c500eb853dbfb6d593abc532 (patch) | |
tree | 4fbb71e4c07665dffdd4f2c4c5c7322ac216e4a2 /portato | |
parent | 7bd265f8c8537d235b24db59463c505629d9c207 (diff) | |
download | portato-30105f0db94f4593c500eb853dbfb6d593abc532.tar.gz portato-30105f0db94f4593c500eb853dbfb6d593abc532.tar.bz2 portato-30105f0db94f4593c500eb853dbfb6d593abc532.zip |
In some cases the SQL-search does the right thing ;)
Diffstat (limited to '')
-rw-r--r-- | portato/db/sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
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) |