more follow ups in new preferences

This commit is contained in:
Noemi Vanyi 2016-04-09 18:32:07 +02:00
parent 8c4db08443
commit 5867e97966
2 changed files with 7 additions and 12 deletions

View file

@ -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)