mirror of
https://github.com/searxng/searxng.git
synced 2025-07-23 05:09:17 +02:00
more follow ups in new preferences
This commit is contained in:
parent
8c4db08443
commit
5867e97966
2 changed files with 7 additions and 12 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue