diff options
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) |