1
0
Fork 0
mirror of synced 2024-06-29 03:30:57 +12:00

Corrected printing of polls

This commit is contained in:
Phxntxm 2016-08-13 23:04:25 -05:00
parent 1899618b81
commit dbf3a5df5e

View file

@ -41,7 +41,7 @@ class Strawpoll:
if not poll_id:
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 poll_id in server_polls.keys():
elif str(poll_id) in server_polls.keys():
poll = server_polls[poll_id]
async with self.session.get("{}/{}".format(self.url, str(poll_id)), headers=self.headers) as response: