mirror of
https://github.com/searxng/searxng.git
synced 2024-11-05 17:09:31 +00:00
WIKIDATA: Add description for results
This commit is contained in:
parent
9dc36965bb
commit
e26bce33d4
1 changed files with 1 additions and 1 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue