mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-11-01 06:24:32 +01:00
Clôture des listes Sympa
This commit is contained in:
@@ -2,10 +2,6 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
from django.conf import settings
|
||||
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
|
||||
|
||||
|
||||
@@ -22,7 +18,7 @@ class Command(BaseCommand):
|
||||
|
||||
sympa = get_sympa_client()
|
||||
|
||||
for mailing_list in sympa.all_lists():
|
||||
address = mailing_list.list_address
|
||||
if address.startswith("equipe") or address.startswith("orga") or address.startswith("jury"):
|
||||
sympa.delete_list(address)
|
||||
for mailing_list in sympa.all_lists():
|
||||
address = mailing_list.list_address
|
||||
if address.startswith("equipe") or address.startswith("orga") or address.startswith("jury"):
|
||||
sympa.delete_list(address)
|
||||
|
||||
Reference in New Issue
Block a user