summaryrefslogtreecommitdiff
path: root/searx_extra/update/update_currencies.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-04 11:05:13 +0200
committerGitHub <noreply@github.com>2021-08-04 11:05:13 +0200
commit4e2ec9b8b30eeb14f0b7e0905bd3e52ecaac831b (patch)
tree3f91702b8aa26f4974a0ec8f6a23a52c62f491e8 /searx_extra/update/update_currencies.py
parent34ffd08187d49b2e5de387f63662c18fda800064 (diff)
parent0d20e5dfe39b371b550b888db9e6cd7a664bddbb (diff)
downloadsearxng-4e2ec9b8b30eeb14f0b7e0905bd3e52ecaac831b.tar.gz
searxng-4e2ec9b8b30eeb14f0b7e0905bd3e52ecaac831b.zip
Merge pull request #247 from dalf/remote_settings_locales
settings.yml: remove locales section.
Diffstat (limited to 'searx_extra/update/update_currencies.py')
-rwxr-xr-xsearx_extra/update/update_currencies.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx_extra/update/update_currencies.py b/searx_extra/update/update_currencies.py
index 0cfb7a951..a572f4e9d 100755
--- a/searx_extra/update/update_currencies.py
+++ b/searx_extra/update/update_currencies.py
@@ -8,7 +8,8 @@ import json
from sys import path
from os.path import realpath, dirname, join
-from searx import searx_dir, settings
+from searx import searx_dir
+from searx.locales import LOCALE_NAMES
from searx.engines.wikidata import send_wikidata_query
@@ -44,7 +45,7 @@ ORDER BY ?iso4217 ?article_name
"""
-LANGUAGES = settings['locales'].keys()
+LANGUAGES = LOCALE_NAMES.keys()
LANGUAGES_SPARQL = ', '.join(set(map(lambda l: repr(l.split('_')[0]), LANGUAGES)))