mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
more follow ups in new preferences
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user