mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[fix] display categories of the selected engines
This commit is contained in:
@@ -414,6 +414,9 @@ class Search(object):
|
|||||||
self.categories.remove(category)
|
self.categories.remove(category)
|
||||||
|
|
||||||
if not load_default_categories:
|
if not load_default_categories:
|
||||||
|
if not self.categories:
|
||||||
|
self.categories = list(set(engine['category']
|
||||||
|
for engine in self.engines))
|
||||||
return
|
return
|
||||||
|
|
||||||
# if no category is specified for this search,
|
# if no category is specified for this search,
|
||||||
|
|||||||
Reference in New Issue
Block a user