From: Guillaume Pellerin Date: Sun, 17 May 2026 19:38:34 +0000 (+0200) Subject: test file.path only X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=21831092e524dfc1b11e5ec58009d7aa6e7aa671;p=teleforma.git test file.path only --- diff --git a/teleforma/management/commands/teleforma-import-conferences-3.py b/teleforma/management/commands/teleforma-import-conferences-3.py index af51a58a..23a01ac5 100644 --- a/teleforma/management/commands/teleforma-import-conferences-3.py +++ b/teleforma/management/commands/teleforma-import-conferences-3.py @@ -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)