From 89d5bd9a2259f682aaf583a159207e329416a1d2 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 13 Aug 2016 20:53:01 -0500 Subject: [PATCH] Corrected error in comprehension --- cogs/stats.py | 2 +- cogs/strawpoll.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/stats.py b/cogs/stats.py index 5988b09..22c037c 100644 --- a/cogs/stats.py +++ b/cogs/stats.py @@ -44,7 +44,7 @@ class Stats: output = "\n".join( "{0.display_name}: {1} times".format(discord.utils.get(self.bot.get_all_members(), id=m_id), amt) for - m_id, amt in booped_members) + m_id, amt in booped_members.items()) await self.bot.say("You have booped:```\n{}```".format(output)) @commands.command(pass_context=True, no_pm=True) diff --git a/cogs/strawpoll.py b/cogs/strawpoll.py index 44d2384..b30d7d3 100644 --- a/cogs/strawpoll.py +++ b/cogs/strawpoll.py @@ -1,6 +1,8 @@ from discord.ext import commands + from .utils import config from .utils import checks + import re import json