From 1d16b94279b252bb2e298a2afffb9561d8b5bd85 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 1 Mar 2025 10:49:11 +0100 Subject: [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 --- searxng_extra/update/update_currencies.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'searxng_extra/update') 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'] -- cgit v1.2.3