From b92f620ce3568a93e7962ebeb96ac6cae9a7a07c Mon Sep 17 00:00:00 2001 From: Joseph Cheung Date: Sun, 5 Mar 2023 00:34:26 +0800 Subject: [PATCH] d --- searx/engines/wolframalpha_noapi.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/searx/engines/wolframalpha_noapi.py b/searx/engines/wolframalpha_noapi.py index bad25602a..f4f551627 100644 --- a/searx/engines/wolframalpha_noapi.py +++ b/searx/engines/wolframalpha_noapi.py @@ -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, } )