forked from zaclys/searxng
[fix] engine - openstreetmap currency matching
This commit is contained in:
parent
82c2c2aa77
commit
ff55fda6aa
|
@ -450,7 +450,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)
|
o = CURRENCIES['iso4217'].get(currency[1])
|
||||||
if o:
|
if o:
|
||||||
return get_label(o, lang).lower()
|
return get_label(o, lang).lower()
|
||||||
return currency
|
return currency
|
||||||
|
|
Loading…
Reference in New Issue