]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 29 May 2026 08:56:04 +0000 (10:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 29 May 2026 08:56:04 +0000 (10:56 +0200)
lib/pdfannotator
teleforma/management/commands/teleforma-import-conferences-4.py

index 1f161760779798d79a9c0c073f15044c2bcc6e46..70e1f1833f63cb9105659b431357be580cdfc659 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 1f161760779798d79a9c0c073f15044c2bcc6e46
+Subproject commit 70e1f1833f63cb9105659b431357be580cdfc659
index bf7e8e8c031a07c7bcddb7f42bcb92f1617e5b80..baa910fb9b8a78ea02943440308ad88ee3e58dab 100644 (file)
@@ -67,11 +67,11 @@ class Command(BaseCommand):
 
             if (os.path.exists(conf_dir) and not conference.media.all()):
 
-                for image_format in image_formats:
+                for image_format in self.image_formats:
                     poster_file = self.find_format(conf_dir, image_format)
 
                 for media_format in self.media_formats:
-                    media_file = find_format(conf_dir, media_format)
+                    media_file = self.find_format(conf_dir, media_format)
                     media = Media(conference=conference)
                     media.course = conference.course
                     media.period = conference.period
@@ -84,7 +84,7 @@ class Command(BaseCommand):
                     with open(media_file, 'rb') as f:
                         media.file_s3.save(filename, File(f))
                     media.set_mime_type()
-                    media_file = find_format(conf_dir, media_format)media.poster_file = poster_file.replace(settings.MEDIA_ROOT, "")
+                    media.poster_file = poster_file.replace(settings.MEDIA_ROOT, "")
                     media.save()
                     logger.logger.info(media_file)