Skip to content

Commit

Permalink
Fixing team restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey committed Jan 2, 2025
1 parent 867ed7b commit 7e5cff6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/iterate_prc_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ async def check_team_restrictions(bot, settings, guild_id, players):
if team_restrictions.get(team_name) is not None:
restriction = team_restrictions.get(team_name)
roles = restriction["required_roles"]
if roles == []:
continue
actual_roles = [discord.utils.get(all_roles, id=r) for r in roles]
members = []
for item in actual_roles:
Expand Down

0 comments on commit 7e5cff6

Please sign in to comment.