From: Guillaume Pellerin Date: Thu, 30 Jun 2022 15:52:02 +0000 (+0200) Subject: add log for new conf pub process X-Git-Tag: 2.7.1~17^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0919ec6fa9f649d09177b1ea48df0fd0584bcf4e;p=teleforma.git add log for new conf pub process --- diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index b2d37eee..bb89390e 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -49,9 +49,7 @@ class Command(BaseCommand): period = Period.objects.get(name=period_name) now_minus = datetime.datetime.now() - datetime.timedelta(minutes=5) - print(now_minus) now_plus = datetime.datetime.now() + datetime.timedelta(minutes=1) - print(now_plus) conferences = Conference.objects.filter( period=period, @@ -60,6 +58,8 @@ class Command(BaseCommand): date_publish__lte=now_plus, date_publish__gte=now_minus, ) + + logger.logger.info("Starting conference publication process") for conference in conferences: conference.status = 3