Invite local organizers, not all organizers in pool channels

This commit is contained in:
Yohann D'ANELLO 2021-04-07 09:03:50 +02:00
parent 9d741d76f2
commit 3bd6d2e647
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ class Command(BaseCommand):
f"@{admin.matrix_username}:tfjm.org", 95) f"@{admin.matrix_username}:tfjm.org", 95)
# Invite organizers and give permissions # Invite organizers and give permissions
for orga in VolunteerRegistration.objects.all(): for orga in tournament.organizers.all():
await Matrix.invite(f"#poule-{slug}-{pool.id}{suffix}:tfjm.org", await Matrix.invite(f"#poule-{slug}-{pool.id}{suffix}:tfjm.org",
f"@{orga.matrix_username}:tfjm.org") f"@{orga.matrix_username}:tfjm.org")
await Matrix.invite(f"#poule-{slug}-{pool.id}{suffix}-jurys:tfjm.org", await Matrix.invite(f"#poule-{slug}-{pool.id}{suffix}-jurys:tfjm.org",