summaryrefslogtreecommitdiff
path: root/searx/search.py
diff options
context:
space:
mode:
authorNoemi Vanyi <sitbackandwait@gmail.com>2016-04-09 18:32:07 +0200
committerNoemi Vanyi <sitbackandwait@gmail.com>2016-04-09 19:49:59 +0200
commit5867e979664d655616e09b74b81fb099a2504ba8 (patch)
tree39f7a2b169b9c26204c1cf0daaa0a826e3d52e74 /searx/search.py
parent8c4db08443c7a55344fa0011b89303467fa62efe (diff)
downloadsearxng-5867e979664d655616e09b74b81fb099a2504ba8.tar.gz
searxng-5867e979664d655616e09b74b81fb099a2504ba8.zip
more follow ups in new preferences
Diffstat (limited to 'searx/search.py')
-rw-r--r--searx/search.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/search.py b/searx/search.py
index 215774c06..a40801640 100644
--- a/searx/search.py
+++ b/searx/search.py
@@ -227,8 +227,7 @@ class Search(object):
# using user-defined default-configuration which
# (is stored in cookie)
if not self.categories:
- cookie_categories = request.cookies.get('categories', '')
- cookie_categories = cookie_categories.split(',')
+ cookie_categories = request.preferences.get_value('categories')
for ccateg in cookie_categories:
if ccateg in categories:
self.categories.append(ccateg)