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 View File

414
                         self.categories.remove(category)
414
                         self.categories.remove(category)
415
 
415
 
416
             if not load_default_categories:
416
             if not load_default_categories:
417
+                if not self.categories:
418
+                    self.categories = list(set(engine['category']
419
+                                               for engine in self.engines))
417
                 return
420
                 return
418
 
421
 
419
             # if no category is specified for this search,
422
             # if no category is specified for this search,