Skip to content

Commit

Permalink
fix non consistent ref to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 19, 2024
1 parent 66ca0f5 commit 07a6fc2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lacommunaute/notification/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from django.urls import reverse
from django.utils import timezone

from config.settings.base import NEW_MESSAGES_EMAIL_MAX_PREVIEW, SIB_NEW_MESSAGES_TEMPLATE
from lacommunaute.forum_conversation.models import Topic
from lacommunaute.forum_member.shortcuts import get_forum_member_display_name
from lacommunaute.notification.emails import bulk_send_user_to_list, send_email
Expand Down Expand Up @@ -31,13 +30,13 @@ def get_grouped_notifications():

params = {
"email_thumbnail": (f"Vous avez {message_count_text} à découvrir sur la communauté de l'inclusion"),
"messages": get_serialized_messages(recipient_notifications[:NEW_MESSAGES_EMAIL_MAX_PREVIEW]),
"messages": get_serialized_messages(recipient_notifications[: settings.NEW_MESSAGES_EMAIL_MAX_PREVIEW]),
}
send_email(
to=[{"email": recipient}],
params=params,
kind=EmailSentTrackKind.BULK_NOTIFS,
template_id=SIB_NEW_MESSAGES_TEMPLATE,
template_id=settings.SIB_NEW_MESSAGES_TEMPLATE,
)

notifications.update(sent_at=timezone.now())
Expand Down

0 comments on commit 07a6fc2

Please sign in to comment.