From 3bd6d2e6472f29e979ac5cbc7f64196ac43e96e8 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 7 Apr 2021 09:03:50 +0200 Subject: [PATCH] Invite local organizers, not all organizers in pool channels --- apps/participation/management/commands/fix_matrix_channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/participation/management/commands/fix_matrix_channels.py b/apps/participation/management/commands/fix_matrix_channels.py index 21f08eb..d76f807 100644 --- a/apps/participation/management/commands/fix_matrix_channels.py +++ b/apps/participation/management/commands/fix_matrix_channels.py @@ -386,7 +386,7 @@ class Command(BaseCommand): f"@{admin.matrix_username}:tfjm.org", 95) # 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", f"@{orga.matrix_username}:tfjm.org") await Matrix.invite(f"#poule-{slug}-{pool.id}{suffix}-jurys:tfjm.org",