From e242856fcf02ab74579bf741dfbd73c0d31e06d7 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 11 Jul 2022 11:38:54 +0200 Subject: [PATCH] reserve new conf notification to Student.platform_only --- bin | 2 +- .../management/commands/teleforma-publish-notify-conferences.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin b/bin index 7a7c9ab6..877deb91 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 7a7c9ab66099c6e93acacf48d589bfc9da5a9fc2 +Subproject commit 877deb91a9d035c74bf726fed8851d38e93014ce diff --git a/teleforma/management/commands/teleforma-publish-notify-conferences.py b/teleforma/management/commands/teleforma-publish-notify-conferences.py index c1b803ff..44de37aa 100644 --- a/teleforma/management/commands/teleforma-publish-notify-conferences.py +++ b/teleforma/management/commands/teleforma-publish-notify-conferences.py @@ -96,7 +96,7 @@ class Command(BaseCommand): url = reverse('teleforma-media-detail', args=[conference.period.id, linked_media.id]) message = "Nouvelle conférence publiée : " + str(conference) - students = Student.objects.filter(period=conference.period) + students = Student.objects.filter(period=conference.period, platform_only=True) for student in students: try: if student.user: -- 2.39.5