mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
d
This commit is contained in:
parent
f83c0d98e0
commit
850576a9e5
2 changed files with 8 additions and 8 deletions
|
@ -89,7 +89,7 @@ def response(resp):
|
|||
'publishedDate': datetime.strptime(tweet['created_at'], '%a %b %d %H:%M:%S %z %Y'),
|
||||
}
|
||||
)
|
||||
if len(results)>=5: break
|
||||
if len(results)>=3: break
|
||||
|
||||
# for user in json_res['users'].values():
|
||||
# results.append(
|
||||
|
|
|
@ -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(
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue