aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers/abstract.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-30 14:37:56 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-05-30 14:37:56 +0200
commit82eeab4b74bbdf9d461a4a586eb3e34b78debb15 (patch)
treeb3d5e3bfbbf23847ff399d12d34f95dbb7770dfc /src/web/controllers/abstract.py
parenthack (diff)
downloadnewspipe-82eeab4b74bbdf9d461a4a586eb3e34b78debb15.tar.gz
newspipe-82eeab4b74bbdf9d461a4a586eb3e34b78debb15.tar.bz2
newspipe-82eeab4b74bbdf9d461a4a586eb3e34b78debb15.zip
Improved UI for bookmarks. It is now possible to search bookmarks through titles and descriptions.
Diffstat (limited to 'src/web/controllers/abstract.py')
-rw-r--r--src/web/controllers/abstract.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/web/controllers/abstract.py b/src/web/controllers/abstract.py
index ae39dff7..47cc365f 100644
--- a/src/web/controllers/abstract.py
+++ b/src/web/controllers/abstract.py
@@ -51,12 +51,7 @@ class AbstractController:
elif key.endswith('__in'):
db_filters.add(getattr(self._db_cls, key[:-4]).in_(value))
elif key.endswith('__contains'):
- db_filters.add(or_(
- getattr(self._db_cls, key[:-10]) \
- .contains(value.lower()),
- getattr(self._db_cls, key[:-10]) \
- .contains(value.upper())
- ))
+ db_filters.add(getattr(self._db_cls, key[:-10]).contains(value))
elif key.endswith('__like'):
db_filters.add(getattr(self._db_cls, key[:-6]).like(value))
elif key.endswith('__ilike'):
bgstack15