summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/webapp.py')
-rw-r--r--searx/webapp.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 20534416f..c95cae2c2 100644
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -91,6 +91,11 @@ def index():
continue
selected_categories.append(category)
if not len(selected_categories):
+ cookie_categories = request.cookies.get('categories', '').split(',')
+ for ccateg in cookie_categories:
+ if ccateg in categories:
+ selected_categories.append(ccateg)
+ if not len(selected_categories):
selected_categories = ['general']
for categ in selected_categories: