1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Added score return for _get_pool

This commit is contained in:
Myned 2017-11-21 06:11:09 -05:00
parent 7d37eb58bf
commit 7e6abef2a5

View file

@ -600,7 +600,7 @@ class MsG:
posts_request = await u.fetch('https://{}.net/pool/show.json'.format(booru), params={'id': tempool['id'], 'page': page}, json=True) posts_request = await u.fetch('https://{}.net/pool/show.json'.format(booru), params={'id': tempool['id'], 'page': page}, json=True)
for post in posts_request['posts']: for post in posts_request['posts']:
posts[post['id']] = {'artist': ', '.join( posts[post['id']] = {'artist': ', '.join(
post['artist']), 'file_url': post['file_url']} post['artist']), 'file_url': post['file_url'], 'score': post['score']}
page += 1 page += 1
return pool, posts return pool, posts