summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolirs <zcauchemar@gmail.com>2023-03-21 00:14:54 +0100
committerSolirs <zcauchemar@gmail.com>2023-03-21 00:14:54 +0100
commite26bce33d43ca46ac5bb63980f25c6a6fc85aa27 (patch)
tree7f001c1192a38f6f84624a76d9731fc56b3d57d5
parent9dc36965bbb118db64c0bf2d3f54389d4d484670 (diff)
downloadsearxng-e26bce33d43ca46ac5bb63980f25c6a6fc85aa27.tar.gz
searxng-e26bce33d43ca46ac5bb63980f25c6a6fc85aa27.zip
WIKIDATA: Add description for results
-rw-r--r--searx/engines/wikidata.py2
1 files changed, 1 insertions, 1 deletions
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 (