Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 41823da1 authored by Markus Heiser's avatar Markus Heiser Committed by GitHub
Browse files

Merge pull request #2272 from Solirs/Wikidata_desc

wikidata: Add description for results
parents 9dc36965 ac169a0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 (