diff options
| author | Alexandre Flament <alex@al-f.net> | 2022-06-29 20:56:16 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-07-02 12:16:00 +0200 |
| commit | 578b2a81837b54444d91669803c3cc92838fc454 (patch) | |
| tree | fe0f522445fa141b51801dfd76fcf676b47b11fb /searxng_extra/update/update_currencies.py | |
| parent | da416511b56b6174025656d8431951eb46b1a73b (diff) | |
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_currencies.py')
| -rwxr-xr-x | searxng_extra/update/update_currencies.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.py index e51692e72..41ee2fa0b 100755 --- a/searxng_extra/update/update_currencies.py +++ b/searxng_extra/update/update_currencies.py @@ -19,10 +19,11 @@ import json from os.path import join from searx import searx_dir -from searx.locales import LOCALE_NAMES +from searx.locales import LOCALE_NAMES, locales_initialize from searx.engines import wikidata, set_loggers set_loggers(wikidata, 'wikidata') +locales_initialize() # ORDER BY (with all the query fields) is important to keep a deterministic result order # so multiple invokation of this script doesn't change currencies.json |