diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-09-01 15:21:17 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-09-01 15:21:17 +0200 |
| commit | f094188780c41d665d08c7aa159968a81ca135ed (patch) | |
| tree | c0f0f804d654861d09df027099708502a550fe52 | |
| parent | 8c4d9b79d5727aa803b88e8181f7edabe46b40c4 (diff) | |
[fix] display categories of the selected engines
| -rw-r--r-- | searx/search.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/search.py b/searx/search.py index f36552a4a..899171242 100644 --- 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, |