From 8af11cd56f243fbf75f3d8de4810998040d56183 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Thu, 30 Oct 2025 20:00:26 +0100 Subject: [PATCH] =?UTF-8?q?Cl=C3=B4ture=20des=20listes=20Sympa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../management/commands/delete_old_sympa_lists.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/participation/management/commands/delete_old_sympa_lists.py b/participation/management/commands/delete_old_sympa_lists.py index f1d6f87..2fa593e 100644 --- a/participation/management/commands/delete_old_sympa_lists.py +++ b/participation/management/commands/delete_old_sympa_lists.py @@ -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)