mirror of https://github.com/searxng/searxng.git
[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:
parent
99d6f51626
commit
056968cc39
|
@ -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'],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue