Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] display categories of the selected engines

Adam Tauberf094188780c4
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,