mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
d
This commit is contained in:
parent
2c2dc85e84
commit
b92f620ce3
1 changed files with 10 additions and 8 deletions
|
@ -114,18 +114,20 @@ def response(resp):
|
|||
if not result_chunks:
|
||||
return []
|
||||
|
||||
results.append(
|
||||
{
|
||||
'infobox': infobox_title,
|
||||
'attributes': result_chunks,
|
||||
'urls': [{'title': 'Wolfram|Alpha', 'url': resp.request.headers['Referer']}],
|
||||
}
|
||||
)
|
||||
# results.append(
|
||||
# {
|
||||
# 'infobox': infobox_title,
|
||||
# 'attributes': result_chunks,
|
||||
# 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}],
|
||||
# }
|
||||
# )
|
||||
|
||||
results.append({'answer': result_chunks})
|
||||
|
||||
results.append(
|
||||
{
|
||||
'url': resp.request.headers['Referer'],
|
||||
'title': 'Wolfram|Alpha (' + infobox_title + ')',
|
||||
'title': 'WolframAlpha (' + infobox_title + ')',
|
||||
'content': result_content,
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue