SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[feat] sort infobox so images are first (#6815)
Brock Vojkovicd48c4b555421
diff --git a/searx/results.py b/searx/results.pyindex 01c80ae06..fa5b63888 100644--- a/searx/results.py+++ b/searx/results.py@@ -182,6 +182,8 @@ class ResultContainer:def close(self):self._closed = True+ # infobox with images first+ self.infoboxes.sort(key=lambda infobox: not infobox.img_src)for result in self.main_results_map.values():result.score = calculate_score(result, result.priority)