From 21831092e524dfc1b11e5ec58009d7aa6e7aa671 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 17 May 2026 21:38:34 +0200 Subject: [PATCH] test file.path only --- .../management/commands/teleforma-import-conferences-3.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.47.3