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

Corrected printing of options list

This commit is contained in:
phxntxm 2016-08-14 00:14:41 -05:00
parent 51438fdde5
commit a0cfcd8c92

View file

@ -47,7 +47,7 @@ class Strawpoll:
data = await response.json()
fmt_options = "\n\t".join(
"{}: {}".format(data['options'][i], data['votes'][i]) for i in range(data['options']))
"{}: {}".format(r, data['votes'][i]) for i, r in enumerate(data['options']))
author = self.bot.get_member(poll['author'])
created_ago = (pendulum.parse(poll['date']) - pendulum.utcnow()).in_words()
link = "https://strawpoll.me{}".format(str(poll_id))