From a86b79031730806610869c60d5e5d00ea5b5c4d3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 10 Nov 2023 22:17:44 +0100 Subject: [PATCH] add condition --- .../commands/teleforma-import-conferences-2-fix-poster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/management/commands/teleforma-import-conferences-2-fix-poster.py b/teleforma/management/commands/teleforma-import-conferences-2-fix-poster.py index 79be38f9..cd5e82bf 100644 --- a/teleforma/management/commands/teleforma-import-conferences-2-fix-poster.py +++ b/teleforma/management/commands/teleforma-import-conferences-2-fix-poster.py @@ -75,7 +75,7 @@ class Command(BaseCommand): # POSTER for file in files: filename, extension = os.path.splitext(file) - if extension[1:] in self.image_formats: + if extension[1:] in self.image_formats and not media.poster_file: media.poster_file = dir + os.sep + file logger.logger.info(media.poster_file) break -- 2.39.5