This commit is contained in:
Joseph Cheung 2023-03-07 22:18:49 +08:00
parent f83c0d98e0
commit 850576a9e5
2 changed files with 8 additions and 8 deletions

View file

@ -89,7 +89,7 @@ def response(resp):
'publishedDate': datetime.strptime(tweet['created_at'], '%a %b %d %H:%M:%S %z %Y'), '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(): # for user in json_res['users'].values():
# results.append( # results.append(

View file

@ -114,13 +114,13 @@ def response(resp):
if not result_chunks: if not result_chunks:
return [] return []
# results.append( results.append(
# { {
# 'infobox': infobox_title, 'infobox': infobox_title,
# 'attributes': result_chunks, 'attributes': result_chunks,
# 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}], 'urls': [{'title': 'WolframAlpha', 'url': resp.request.headers['Referer']}],
# } }
# ) )
results.append( results.append(
{ {