aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/controllers
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-06-01 10:03:46 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-06-01 10:03:46 +0200
commitad1fd405860bcfe54a1de55410a4855a799f2f05 (patch)
tree69dd2c230294c2db3b507ed14703626a44b399e2 /pyaggr3g470r/controllers
parentThis sort is supposed to be based on the feed's name. (diff)
downloadnewspipe-ad1fd405860bcfe54a1de55410a4855a799f2f05.tar.gz
newspipe-ad1fd405860bcfe54a1de55410a4855a799f2f05.tar.bz2
newspipe-ad1fd405860bcfe54a1de55410a4855a799f2f05.zip
The search is now case unsensitive.
Diffstat (limited to 'pyaggr3g470r/controllers')
-rw-r--r--pyaggr3g470r/controllers/abstract.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyaggr3g470r/controllers/abstract.py b/pyaggr3g470r/controllers/abstract.py
index f67f932c..281e1415 100644
--- a/pyaggr3g470r/controllers/abstract.py
+++ b/pyaggr3g470r/controllers/abstract.py
@@ -53,6 +53,8 @@ class AbstractController(object):
db_filters.add(getattr(self._db_cls, key[:-4]).in_(value))
elif key.endswith('__like'):
db_filters.add(getattr(self._db_cls, key[:-6]).like(value))
+ elif key.endswith('__ilike'):
+ db_filters.add(getattr(self._db_cls, key[:-7]).ilike(value))
else:
db_filters.add(getattr(self._db_cls, key) == value)
return db_filters
bgstack15