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

Fix the fix of the sympa lists

This commit is contained in:
Yohann D'ANELLO 2020-12-24 00:43:07 +01:00
parent bf2feb9c35
commit 7628387158
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -26,10 +26,12 @@ class Command(BaseCommand):
f" des Correspondances.", "education", raise_error=False) f" des Correspondances.", "education", raise_error=False)
for team in Team.objects.filter(participation__valid=True).all(): for team in Team.objects.filter(participation__valid=True).all():
sympa.subscribe(team.email, "equipes", f"Equipe {team.name}", True, True) team.create_mailing_list()
sympa.subscribe(team.email, "equipes", f"Equipe {team.name}", True)
sympa.subscribe(team.email, f"probleme-{team.participation.problem}", f"Equipe {team.name}", True) sympa.subscribe(team.email, f"probleme-{team.participation.problem}", f"Equipe {team.name}", True)
for team in Team.objects.filter(Q(participation__valid=False) | Q(participation__valid__isnull=True)).all(): for team in Team.objects.filter(Q(participation__valid=False) | Q(participation__valid__isnull=True)).all():
team.create_mailing_list()
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():