From d009065c6c146061385b1654cbaacb5cb4309819 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 15 Nov 2021 12:47:19 +0100 Subject: [PATCH] bugfix --- .../commands/teleforma-import-conferences-create-2-fix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/management/commands/teleforma-import-conferences-create-2-fix.py b/teleforma/management/commands/teleforma-import-conferences-create-2-fix.py index 94771c5c..3a1da988 100644 --- a/teleforma/management/commands/teleforma-import-conferences-create-2-fix.py +++ b/teleforma/management/commands/teleforma-import-conferences-create-2-fix.py @@ -74,9 +74,9 @@ class Command(BaseCommand): conferences = Conference.objects.filter(public_id=public_id) if conferences: conference = conferences[0] - if not conference.period == period_obj: + if not conference.period == period_obj and conf_datetime > datetime_limit: conference.delete() - conf_datetime > datetime_limit: + courses = Course.objects.filter(code=course_id) print(course_id) print(path) -- 2.39.5