summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2023-03-22 06:03:48 +0100
committerGitHub <noreply@github.com>2023-03-22 06:03:48 +0100
commit41823da1b2001c2c14cce7743f224767099c8095 (patch)
tree8ef862e4c64183ba5b9c1bff4d9f8b80a2b84733
parent9dc36965bbb118db64c0bf2d3f54389d4d484670 (diff)
parentac169a0f75ee69c50a23837ba734fb5d898b9966 (diff)
Merge pull request #2272 from Solirs/Wikidata_desc
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..8d3b0839a 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 (