Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions notifications/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def send_user_email_task(self, user_id, notification_ids, **kwargs):
return

try:
notifications_qs = Notification.objects.filter(id__in=notification_ids)
notifications_qs = Notification.objects.filter(id__in=notification_ids, sent__isnull=True)
rendered_notifications, failed_notifications = safe_render_notification(notifications_qs, email_task)
notifications_qs = notifications_qs.exclude(id__in=failed_notifications)

Expand Down Expand Up @@ -168,7 +168,7 @@ def send_moderator_email_task(self, user_id, notification_ids, provider_content_
return

try:
notifications_qs = Notification.objects.filter(id__in=notification_ids)
notifications_qs = Notification.objects.filter(id__in=notification_ids, sent__isnull=True)
rendered_notifications, failed_notifications = safe_render_notification(notifications_qs, email_task)
notifications_qs = notifications_qs.exclude(id__in=failed_notifications)

Expand Down