mirror of
https://github.com/searxng/searxng.git
synced 2024-12-24 02:00:29 +00:00
[fix] display categories of the selected engines
This commit is contained in:
parent
8c4d9b79d5
commit
f094188780
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue