Corrected printing of polls
This commit is contained in:
parent
dbf3a5df5e
commit
ca52ec25b9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue