]> git.parisson.com Git - teleforma.git/commitdiff
fix test anf poster path
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 29 May 2026 08:40:23 +0000 (10:40 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Fri, 29 May 2026 08:40:23 +0000 (10:40 +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 65ab67dbd5d478eed3fa672d9b3a618d8be4d3fe..78de6cdd7f1d9c4f638e737cf7f78ce8572c18b9 100644 (file)
@@ -59,9 +59,7 @@ class Command(BaseCommand):
                 conference.public_id])
 
             if (os.path.exists(conf_dir) and
-                not streaming and
-                not conference.media.all() and
-                not conference.station.filter(started=True, public_id=public_id)
+                not conference.media.all()
                 ):
 
                 files = os.listdir(conf_dir)
@@ -69,6 +67,8 @@ class Command(BaseCommand):
                 for file in files:
                     name, ext = os.path.splitext(file)
                     if ext[1:] in self.image_formats:
+                        full_path = conf_dir + os.sep + file
+                        rel_path = full_path.replace(settings.MEDIA_ROOT, "")
                         poster_file = rel_path
 
                 for media_format in self.media_formats: