diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2023-03-22 06:03:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-22 06:03:48 +0100 |
| commit | 41823da1b2001c2c14cce7743f224767099c8095 (patch) | |
| tree | 8ef862e4c64183ba5b9c1bff4d9f8b80a2b84733 | |
| parent | 9dc36965bbb118db64c0bf2d3f54389d4d484670 (diff) | |
| parent | ac169a0f75ee69c50a23837ba734fb5d898b9966 (diff) | |
Merge pull request #2272 from Solirs/Wikidata_desc
wikidata: Add description for results
| -rw-r--r-- | searx/engines/wikidata.py | 2 |
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 ( |