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] unit converter operating backwards (from_si <-> to_si)

Markus Heiser056968cc397c
diff --git a/searx/plugins/unit_converter.py b/searx/plugins/unit_converter.py
index cf8c6ccc3..057e66e78 100644
--- a/searx/plugins/unit_converter.py
+++ b/searx/plugins/unit_converter.py
@@ -138,8 +138,8 @@ def symbol_to_si():
(
item['symbol'],
item['si_name'],
- item['to_si_factor'], # from_si
- 1 / item['to_si_factor'], # to_si
+ 1 / item['to_si_factor'], # from_si
+ item['to_si_factor'], # to_si
item['symbol'],
)
)