1
0
Fork 0
mirror of synced 2024-09-29 08:51:53 +13:00

Corrected printing of polls

This commit is contained in:
Phxntxm 2016-08-13 23:05:06 -05:00
parent dbf3a5df5e
commit ca52ec25b9

View file

@ -42,7 +42,7 @@ class Strawpoll:
fmt = "\n".join("{}: https://strawpoll.me/{}".format(data['title'], id) for id, data in server_polls.items())
await self.bot.say("```\n{}```".format(fmt))
elif str(poll_id) in server_polls.keys():
poll = server_polls[poll_id]
poll = server_polls[str(poll_id)]
async with self.session.get("{}/{}".format(self.url, str(poll_id)), headers=self.headers) as response:
data = await response.json()