From 44ac4598efaa1a07215b8aa0f6f7806173fa2408 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 29 May 2026 10:40:23 +0200 Subject: [PATCH] fix test anf poster path --- lib/pdfannotator | 2 +- .../management/commands/teleforma-import-conferences-4.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pdfannotator b/lib/pdfannotator index 1f161760..70e1f183 160000 --- a/lib/pdfannotator +++ b/lib/pdfannotator @@ -1 +1 @@ -Subproject commit 1f161760779798d79a9c0c073f15044c2bcc6e46 +Subproject commit 70e1f1833f63cb9105659b431357be580cdfc659 diff --git a/teleforma/management/commands/teleforma-import-conferences-4.py b/teleforma/management/commands/teleforma-import-conferences-4.py index 65ab67db..78de6cdd 100644 --- a/teleforma/management/commands/teleforma-import-conferences-4.py +++ b/teleforma/management/commands/teleforma-import-conferences-4.py @@ -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: -- 2.47.3