From: Guillaume Pellerin Date: Fri, 10 Nov 2023 21:17:44 +0000 (+0100) Subject: add condition X-Git-Tag: 2.8.1-ae~29 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a86b79031730806610869c60d5e5d00ea5b5c4d3;p=teleforma.git add condition --- 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