From: Guillaume Pellerin Date: Tue, 5 Jul 2022 16:46:03 +0000 (+0200) Subject: Merge branch 'dev' X-Git-Tag: 2.7.1~16 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=0f67159e31dcb79215834fdb1ec13ef43a872c7f;p=teleforma.git Merge branch 'dev' --- 0f67159e31dcb79215834fdb1ec13ef43a872c7f diff --cc teleforma/management/commands/teleforma-publish-notify-conferences.py index bb89390e,bf375fe3..dd87ebb0 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@@ -48,8 -48,10 +48,8 @@@ class Command(BaseCommand) period_name = options['period'] period = Period.objects.get(name=period_name) - now_minus = datetime.datetime.now() - datetime.timedelta(minutes=5) - now_plus = datetime.datetime.now() + datetime.timedelta(minutes=1) + now_minus = datetime.datetime.now() - datetime.timedelta(minutes=30) - print(now_minus) + now_plus = datetime.datetime.now() + datetime.timedelta(minutes=5) - print(now_plus) conferences = Conference.objects.filter( period=period, @@@ -58,9 -60,7 +58,9 @@@ date_publish__lte=now_plus, date_publish__gte=now_minus, ) - + + logger.logger.info("Starting conference publication process") + for conference in conferences: conference.status = 3 conference.save()