]> git.parisson.com Git - teleforma.git/commitdiff
fix filter
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Aug 2026 16:25:09 +0000 (18:25 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Aug 2026 16:25:09 +0000 (18:25 +0200)
teleforma/management/commands/teleforma-export-conferences-s3.py

index 84cbeb0c87be31e7450a4083e880e98475f5661d..d45c3194ffefe96f520c860bd44e4a62f048f2b7 100644 (file)
@@ -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():