From: Guillaume Pellerin Date: Tue, 2 Aug 2022 09:44:26 +0000 (+0200) Subject: publish before notify X-Git-Tag: 2.7.1~10 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a65bb804f434c9c029284ee53baf8f5dd2ef1d2d;p=teleforma.git publish before notify --- diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index 44de37aa..ac6a8218 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -91,7 +91,8 @@ class Command(BaseCommand): if "video/mp4" in media.mime_type: linked_media = media logger.logger.info("Conference published: " + conference.public_id) - + + for conference in conferences: media = conference.media.filter(mime_type='video/mp4')[0] url = reverse('teleforma-media-detail', args=[conference.period.id, linked_media.id]) message = "Nouvelle conférence publiée : " + str(conference)