1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-14 00:30:15 +01:00

[fix] unit converter operating backwards (from_si <-> to_si)

The factors for from_si and to_si were reversed.

Closes: https://github.com/searxng/searxng/issues/3497
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-05-19 20:27:12 +02:00 committed by Markus Heiser
parent 99d6f51626
commit 056968cc39

View File

@ -138,8 +138,8 @@ def symbol_to_si():
( (
item['symbol'], item['symbol'],
item['si_name'], item['si_name'],
item['to_si_factor'], # from_si 1 / item['to_si_factor'], # from_si
1 / item['to_si_factor'], # to_si item['to_si_factor'], # to_si
item['symbol'], item['symbol'],
) )
) )