logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: f094188780c41d665d08c7aa159968a81ca135ed
parent: 8c4d9b79d5727aa803b88e8181f7edabe46b40c4
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue,  1 Sep 2015 15:21:17 +0200

[fix] display categories of the selected engines

Diffstat:

searx/search.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

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