From: Guillaume Pellerin Date: Wed, 5 Aug 2026 16:25:09 +0000 (+0200) Subject: fix filter X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=e2acfaa035fa88fea42c17b6f52425b14ac52831;p=teleforma.git fix filter --- diff --git a/teleforma/management/commands/teleforma-export-conferences-s3.py b/teleforma/management/commands/teleforma-export-conferences-s3.py index 84cbeb0c..d45c3194 100644 --- a/teleforma/management/commands/teleforma-export-conferences-s3.py +++ b/teleforma/management/commands/teleforma-export-conferences-s3.py @@ -45,7 +45,7 @@ class Command(BaseCommand): organization = Organization.objects.get(name=organization_name) department = Department.objects.get(name=department_name, organization=organization) - periods = Period.objects.filter(name__in=year) + periods = Period.objects.filter(name__icontains=year) media_dir = settings.MEDIA_ROOT + organization.name + os.sep + department_name for period in periods: @@ -53,7 +53,7 @@ class Command(BaseCommand): department=department, period=period, s3_exported=False, - is_published=True, + status=3, ) for conference in conferences: for media in conference.media.all():