Skip to content

Commit

Permalink
Merge pull request #222 from The-4th-Hokage/deepsource-fix-26326308
Browse files Browse the repository at this point in the history
Iterate dictionary directly
  • Loading branch information
Dhruvacube authored Oct 18, 2021
2 parents 2fa7f90 + 1365d2d commit 16506a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minato_namikaze/bot_files/cogs/polls.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ async def tally(self, ctx, id):

# add the bot's ID to the list of voters to exclude it's votes
voters = [self.bot.user.id]
tally = {x: 0 for x in opt_dict.keys()}
tally = {x: 0 for x in opt_dict}
for reaction in poll_message.reactions:
if reaction.emoji in self.reactions:
reactors = await reaction.users().flatten()
Expand Down

0 comments on commit 16506a8

Please sign in to comment.