Skip to content

Commit

Permalink
simplify params for SIB_NEW_MESSAGES_TEMPLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Dec 2, 2024
1 parent f8747a2 commit b373594
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lacommunaute/notification/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def get_grouped_notifications():
message_count_text = f"{message_count} message{pluralize(message_count, 's')}"

params = {
"email_object": "Bonne nouvelle, ça bouge pour vous dans la communauté !",
"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]),
}
Expand Down
1 change: 0 additions & 1 deletion lacommunaute/notification/tests/tests_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_expected_email_payload(self, notifications):
message_count_text = f"{message_count} message{pluralize(message_count, 's')}"

params = {
"email_object": "Bonne nouvelle, ça bouge pour vous dans la communauté !",
"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]),
}
Expand Down

0 comments on commit b373594

Please sign in to comment.