1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2024-12-05 02:06:52 +00:00

Fix the fix sympa lists script

This commit is contained in:
Yohann D'ANELLO 2021-01-01 15:41:23 +01:00
parent 95a69f35d2
commit bcdbc445c6
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -38,6 +38,6 @@ class Command(BaseCommand):
sympa.subscribe(team.email, "equipes-non-valides", f"Equipe {team.name}", True) sympa.subscribe(team.email, "equipes-non-valides", f"Equipe {team.name}", True)
for student in StudentRegistration.objects.filter(team__isnull=False).all(): for student in StudentRegistration.objects.filter(team__isnull=False).all():
sympa.subscribe(student.user.email, f"equipe-{student.team.trigram.lower}", True, f"{student}") sympa.subscribe(student.user.email, f"equipe-{student.team.trigram.lower()}", True, f"{student}")
for coach in CoachRegistration.objects.filter(team__isnull=False).all(): for coach in CoachRegistration.objects.filter(team__isnull=False).all():
sympa.subscribe(coach.user.email, f"equipe-{coach.team.trigram.lower}", True, f"{coach}") sympa.subscribe(coach.user.email, f"equipe-{coach.team.trigram.lower()}", True, f"{coach}")