summaryrefslogtreecommitdiff
path: root/searxng_extra/update/update_engine_descriptions.py
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-06-29 20:56:16 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-02 12:16:00 +0200
commit578b2a81837b54444d91669803c3cc92838fc454 (patch)
treefe0f522445fa141b51801dfd76fcf676b47b11fb /searxng_extra/update/update_engine_descriptions.py
parentda416511b56b6174025656d8431951eb46b1a73b (diff)
downloadsearxng-578b2a81837b54444d91669803c3cc92838fc454.tar.gz
searxng-578b2a81837b54444d91669803c3cc92838fc454.zip
fix searxng_extra/update/update*.py scripts
call searx.locales.locales_initialize before using LOCALE_NAMES Related to https://github.com/searxng/searxng/pull/1306
Diffstat (limited to 'searxng_extra/update/update_engine_descriptions.py')
-rwxr-xr-xsearxng_extra/update/update_engine_descriptions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/searxng_extra/update/update_engine_descriptions.py b/searxng_extra/update/update_engine_descriptions.py
index 5b73fd396..f3d6e7fa8 100755
--- a/searxng_extra/update/update_engine_descriptions.py
+++ b/searxng_extra/update/update_engine_descriptions.py
@@ -22,13 +22,14 @@ from langdetect.lang_detect_exception import LangDetectException
from searx.engines import wikidata, set_loggers
from searx.utils import extract_text, match_language
-from searx.locales import LOCALE_NAMES
+from searx.locales import LOCALE_NAMES, locales_initialize
from searx import searx_dir
from searx.utils import gen_useragent
import searx.search
import searx.network
set_loggers(wikidata, 'wikidata')
+locales_initialize()
SPARQL_WIKIPEDIA_ARTICLE = """
SELECT DISTINCT ?item ?name