1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-10-31 16:20:00 +01:00

Clôture des listes Sympa

This commit is contained in:
Emmy D'Anello
2025-10-30 20:00:26 +01:00
parent 5c372f7582
commit 8af11cd56f

View File

@@ -2,10 +2,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from django.conf import settings from django.conf import settings
from django.core.management import BaseCommand from django.core.management import BaseCommand
from django.db.models import Q
from django.template.defaultfilters import slugify
from participation.models import Team, Tournament
from registration.models import ParticipantRegistration, VolunteerRegistration
from tfjm.lists import get_sympa_client from tfjm.lists import get_sympa_client
@@ -22,7 +18,7 @@ class Command(BaseCommand):
sympa = get_sympa_client() sympa = get_sympa_client()
for mailing_list in sympa.all_lists(): for mailing_list in sympa.all_lists():
address = mailing_list.list_address address = mailing_list.list_address
if address.startswith("equipe") or address.startswith("orga") or address.startswith("jury"): if address.startswith("equipe") or address.startswith("orga") or address.startswith("jury"):
sympa.delete_list(address) sympa.delete_list(address)