]> git.parisson.com Git - teleforma.git/commitdiff
syntax
authorGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 09:04:55 +0000 (11:04 +0200)
committerGuillaume Pellerin <guillaume.pellerin@free.fr>
Mon, 22 Apr 2024 09:04:55 +0000 (11:04 +0200)
teleforma/management/commands/teleforma-import-conferences-2.py

index e09a33f0bd6bf837203189c5a2d0141417cc83de..6c644a7b32493f3e6ff9c303579fcf23aaefc9c0 100644 (file)
@@ -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()