forked from Ponysearch/Ponysearch
add profile image to user results
This commit is contained in:
parent
b6fd7cd571
commit
c8acd4a3b6
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ def response(resp):
|
|||
|
||||
for user in json_res['users'].values():
|
||||
results.append(
|
||||
{'title': user['name'], 'content': user['description'], 'url': 'https://twitter.com/' + user['screen_name']}
|
||||
{
|
||||
'title': user['name'],
|
||||
'content': user['description'],
|
||||
'url': 'https://twitter.com/' + user['screen_name'],
|
||||
'img_src': user['profile_image_url_https'],
|
||||
}
|
||||
)
|
||||
|
||||
return results
|
||||
|
|
Loading…
Reference in a new issue