Browse Source

[fix] display categories of the selected engines

Adam Tauber 9 years ago
parent
commit
f094188780
1 changed files with 3 additions and 0 deletions
  1. 3 0
      searx/search.py

+ 3 - 0
searx/search.py

@@ -414,6 +414,9 @@ class Search(object):
                         self.categories.remove(category)
                         self.categories.remove(category)
 
 
             if not load_default_categories:
             if not load_default_categories:
+                if not self.categories:
+                    self.categories = list(set(engine['category']
+                                               for engine in self.engines))
                 return
                 return
 
 
             # if no category is specified for this search,
             # if no category is specified for this search,