aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
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/views/views.py
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/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index c9a92852..58b3e7f0 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -322,12 +322,12 @@ def search():
search_title = request.args.get('search_title', 'off')
search_content = request.args.get('search_content', 'off')
if search_title == 'on':
- filters['title__like'] = "%%%s%%" % query
+ filters['title__ilike'] = "%%%s%%" % query
if search_content == 'on':
- filters['content__like'] = "%%%s%%" % query
+ filters['content__ilike'] = "%%%s%%" % query
if len(filters) == 0:
search_title = 'on'
- filters['title__like'] = "%%%s%%" % query
+ filters['title__ilike'] = "%%%s%%" % query
if len(filters) > 1:
filters = {"__or__": filters}
return render_home(filters, ["%s %s" % (gettext('Search:'), query)],
bgstack15