]> git.parisson.com Git - teleforma.git/commitdiff
test file.path only
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 17 May 2026 19:38:34 +0000 (21:38 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sun, 17 May 2026 19:38:34 +0000 (21:38 +0200)
teleforma/management/commands/teleforma-import-conferences-3.py

index af51a58a19d61463339d006e9c57dc58c63cd586..23a01ac53ceed82a570fd86f0d0d05538d00b47a 100644 (file)
@@ -68,7 +68,7 @@ class Command(BaseCommand):
                     organization_name = root_list[-5]
                     dir = os.sep.join(root_list[-5:])
                     path = dir + os.sep + filename
-                    
+                     
                     if Conference.objects.filter(public_id=public_id) and department:
                         conference = Conference.objects.get(public_id=public_id)
                         department = Department.objects.get(name=department_name,
@@ -76,10 +76,9 @@ class Command(BaseCommand):
                         exist = False
                         medias = conference.media.all()
                         for media in medias:
-                            if media.file == path or media.file_s3:
+                            if media.file == path:
                                 exist = True
                                 break
-
                         streaming = False
                         try:
                             stations = conference.station.filter(started=True, public_id=public_id)