Don't create rooms for "mise en commun"

This commit is contained in:
Yohann D'ANELLO 2022-02-04 14:14:59 +01:00
parent d210b2a221
commit d37354dc24
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 0 deletions

View File

@ -444,6 +444,7 @@ class Command(BaseCommand):
await Matrix.set_room_power_level(f"#equipe-{team.trigram.lower()}:tfjm.org", await Matrix.set_room_power_level(f"#equipe-{team.trigram.lower()}:tfjm.org",
f"@{participant.matrix_username}:tfjm.org", 50) f"@{participant.matrix_username}:tfjm.org", 50)
"""
# Manage channels to discuss about problems # Manage channels to discuss about problems
for i in range(9): for i in range(9):
self.stdout.write(f"Create channel for problem {i}...") self.stdout.write(f"Create channel for problem {i}...")
@ -471,5 +472,6 @@ class Command(BaseCommand):
await Matrix.set_room_power_level(f"#mec-{i}:tfjm.org", await Matrix.set_room_power_level(f"#mec-{i}:tfjm.org",
f"@{registration.matrix_username}:tfjm.org", f"@{registration.matrix_username}:tfjm.org",
95 if registration.is_admin else 50) 95 if registration.is_admin else 50)
"""
asyncio.get_event_loop().run_until_complete(main()) asyncio.get_event_loop().run_until_complete(main())