summaryrefslogtreecommitdiff
path: root/portato/db/sql.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-17 01:55:25 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-17 01:55:25 +0100
commit30105f0db94f4593c500eb853dbfb6d593abc532 (patch)
tree4fbb71e4c07665dffdd4f2c4c5c7322ac216e4a2 /portato/db/sql.py
parent7bd265f8c8537d235b24db59463c505629d9c207 (diff)
downloadportato-30105f0db94f4593c500eb853dbfb6d593abc532.tar.gz
portato-30105f0db94f4593c500eb853dbfb6d593abc532.tar.bz2
portato-30105f0db94f4593c500eb853dbfb6d593abc532.zip
In some cases the SQL-search does the right thing ;)
Diffstat (limited to 'portato/db/sql.py')
-rw-r--r--portato/db/sql.py1
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)