diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-03-01 10:49:11 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-03-01 12:21:29 +0100 |
| commit | 1d16b94279b252bb2e298a2afffb9561d8b5bd85 (patch) | |
| tree | 4e4ba3db9dc6c879249be0629345b2969d18d511 /searxng_extra | |
| parent | 30a820437da40cba2b1ca386564c8fc1ee6f92d1 (diff) | |
[fix] wikidata: increase wikidata queries timeout
The big queries for initializing and updating the currencies take longer than
the default of the wikidata engine, which is only 3sec.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searxng_extra')
| -rwxr-xr-x | searxng_extra/update/update_currencies.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searxng_extra/update/update_currencies.py b/searxng_extra/update/update_currencies.py index 3cadcfe86..903bdcb44 100755 --- a/searxng_extra/update/update_currencies.py +++ b/searxng_extra/update/update_currencies.py @@ -92,8 +92,7 @@ def add_currency_label(db, label, iso4217, language): def wikidata_request_result_iterator(request): - wikidata.timeout = 30 # github CI has longer timeouts - result = wikidata.send_wikidata_query(request.replace('%LANGUAGES_SPARQL%', LANGUAGES_SPARQL)) + result = wikidata.send_wikidata_query(request.replace('%LANGUAGES_SPARQL%', LANGUAGES_SPARQL), timeout=20) if result is not None: yield from result['results']['bindings'] |