[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
1 changed files with 2 additions and 2 deletions

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'],
) )
) )