瀏覽代碼

[fix] display categories of the selected engines

Adam Tauber 9 年之前
父節點
當前提交
f094188780
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      searx/search.py

+ 3
- 0
searx/search.py 查看文件

@@ -414,6 +414,9 @@ class Search(object):
414 414
                         self.categories.remove(category)
415 415
 
416 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 420
                 return
418 421
 
419 422
             # if no category is specified for this search,