on master help sign in
[fix] display categories of the selected engines
commitf094188780c41d665d08c7aa159968a81ca135ed authorAdam Tauber <asciimoo@gmail.com> dateTue 1 Sep 2015, 15:21 (11 years ago) parent8c4d9b7
1 file changed+3
searx/search.py+3
searx/search.py+3
@@ -414,6 +414,9 @@ class Search(object):
414414 self.categories.remove(category)
415415
416416 if not load_default_categories:
417+ if not self.categories:
418+ self.categories = list(set(engine['category']
419+ for engine in self.engines))
417420 return
418421
419422 # if no category is specified for this search,