From: Guillaume Pellerin Date: Mon, 15 Nov 2021 11:47:19 +0000 (+0100) Subject: bugfix X-Git-Tag: 2.5.0~27 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d009065c6c146061385b1654cbaacb5cb4309819;p=teleforma.git bugfix --- 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)