From e26bce33d43ca46ac5bb63980f25c6a6fc85aa27 Mon Sep 17 00:00:00 2001 From: Solirs Date: Tue, 21 Mar 2023 00:14:54 +0100 Subject: [PATCH] WIKIDATA: Add description for results --- searx/engines/wikidata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index e0ad2e6c9..4fef6c4bb 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -260,7 +260,7 @@ def get_results(attribute_result, attributes, language): infobox_urls.append({'title': attribute.get_label(language), 'url': url, **attribute.kwargs}) # "normal" results (not infobox) include official website and Wikipedia links. if attribute.kwargs.get('official') or attribute_type == WDArticle: - results.append({'title': infobox_title, 'url': url}) + results.append({'title': infobox_title, 'url': url, "content":infobox_content}) # update the infobox_id with the wikipedia URL # first the local wikipedia URL, and as fallback the english wikipedia URL if attribute_type == WDArticle and (