mirror of
https://github.com/searxng/searxng.git
synced 2024-11-13 13:41:03 +00: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:
parent
99d6f51626
commit
056968cc39
1 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue