[fix] openstreetmap: fix CURRENCIES.iso4217_to_name

This patch is a leftover from PR-5204 [1].

[1] https://github.com/searxng/searxng/pull/5204

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2025-09-24 12:50:05 +02:00 committed by Markus Heiser
parent 4445f26f5a
commit 4f4de3fc87

View File

@ -446,7 +446,7 @@ def get_key_label(key_name, lang):
# https://taginfo.openstreetmap.org/keys/currency#values # https://taginfo.openstreetmap.org/keys/currency#values
currency = key_name.split(':') currency = key_name.split(':')
if len(currency) > 1: if len(currency) > 1:
o = CURRENCIES['iso4217'].get(currency[1]) o = CURRENCIES.iso4217_to_name(currency[1], lang)
if o: if o:
return get_label(o, lang).lower() return get_label(o, lang).lower()
return currency[1] return currency[1]