mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-11-03 00:24:30 +01:00
Clôture des listes Sympa
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user