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] online_currency.py: if more alternatives, use the last in the list

Markus Heiserc96ba25f5be7
diff --git a/searx/search/processors/online_currency.py b/searx/search/processors/online_currency.py
index 7d6811e6b..197e0e061 100644
--- a/searx/search/processors/online_currency.py
+++ b/searx/search/processors/online_currency.py
@@ -23,7 +23,7 @@ def name_to_iso4217(name):
currency = CURRENCIES['names'].get(name, [name])
if isinstance(currency, str):
return currency
- return currency[0]
+ return currency[-1]
def iso4217_to_name(iso4217, language):