Skip to content

Commit cb7bd03

Browse files
committed
style: black
1 parent 2613252 commit cb7bd03

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

addons/vote.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ async def vote_status(
239239
await ctx.reply(text)
240240

241241
@vote.subcommand("voters")
242-
async def vote_voters(self, ctx: dico_command.Context, to_show: str = None, unvoted: str = None):
242+
async def vote_voters(
243+
self, ctx: dico_command.Context, to_show: str = None, unvoted: str = None
244+
):
243245
async with self.bot.db.execute("SELECT * FROM vote") as cur:
244246
data = tuple(map(dict, await cur.fetchall()))
245247
members = await ctx.guild.list_members(limit=200)
@@ -254,7 +256,11 @@ async def vote_voters(self, ctx: dico_command.Context, to_show: str = None, unvo
254256
# or 918472234069286953 in member.role_ids
255257
):
256258
continue
257-
team_role = [x for x in member.roles if x.id not in Config.EXCLUDE_ROLES and x.id != 918472234069286953]
259+
team_role = [
260+
x
261+
for x in member.roles
262+
if x.id not in Config.EXCLUDE_ROLES and x.id != 918472234069286953
263+
]
258264
if not team_role:
259265
continue
260266
team_role = team_role[0]

0 commit comments

Comments
 (0)