From: Guillaume Pellerin Date: Mon, 22 Apr 2024 09:04:55 +0000 (+0200) Subject: syntax X-Git-Tag: 2.9.0~4 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0f6e96181bb7d8564a401756c044251b68363c9b;p=teleforma.git syntax --- diff --git a/teleforma/management/commands/teleforma-import-conferences-2.py b/teleforma/management/commands/teleforma-import-conferences-2.py index e09a33f0..6c644a7b 100644 --- a/teleforma/management/commands/teleforma-import-conferences-2.py +++ b/teleforma/management/commands/teleforma-import-conferences-2.py @@ -110,10 +110,10 @@ class Command(BaseCommand): if not media.poster_file: for file in files: - filename, extension = os.path.splitext(file) - if extension[1:] in self.image_formats: - media.poster_file = dir + os.sep + file - break + filename, extension = os.path.splitext(file) + if extension[1:] in self.image_formats: + media.poster_file = dir + os.sep + file + break media.save()