mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
c
This commit is contained in:
parent
50069a4730
commit
188cac773e
3 changed files with 9 additions and 9 deletions
|
@ -114,13 +114,13 @@ def response(resp):
|
|||
if not result_chunks:
|
||||
return []
|
||||
|
||||
results.append(
|
||||
{
|
||||
'infobox': infobox_title,
|
||||
'attributes': result_chunks,
|
||||
'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}],
|
||||
}
|
||||
)
|
||||
# results.append(
|
||||
# {
|
||||
# 'infobox': infobox_title,
|
||||
# 'attributes': result_chunks,
|
||||
# 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}],
|
||||
# }
|
||||
# )
|
||||
|
||||
results.append(
|
||||
{
|
||||
|
|
|
@ -682,7 +682,7 @@ def process_result(result):
|
|||
|
||||
# 判断返回值是否为'null',如果不是则更新title
|
||||
if response.text != 'null':
|
||||
result['title'] += ' 网站备案主体:' +response.text
|
||||
result['title'] += ' (该网站属于:' +response.text + ')'
|
||||
|
||||
@app.route('/search', methods=['GET', 'POST'])
|
||||
def search():
|
||||
|
|
|
@ -682,7 +682,7 @@ def process_result(result):
|
|||
|
||||
# 判断返回值是否为'null',如果不是则更新title
|
||||
if response.text != 'null':
|
||||
result['title'] += ' 网站备案主体:' +response.text
|
||||
result['title'] += ' (该网站属于:' +response.text + ')'
|
||||
|
||||
@app.route('/search', methods=['GET', 'POST'])
|
||||
def search():
|
||||
|
|
Loading…
Add table
Reference in a new issue