Skip to content

Commit 3df220a

Browse files
committed
fix: send an email for each deletion
1 parent b8be252 commit 3df220a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ckanext/subscribe/notification.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ def send_emails(notifications_by_email, deletions_by_email):
380380
code, email, notifications, "notification"
381381
)
382382
for email, notifications in deletions_by_email.items():
383-
code = email_auth.create_code(email)
384-
notification_email.send_notification_email(
385-
code, email, notifications, "deletion"
386-
)
383+
for notification in notifications:
384+
code = email_auth.create_code(email)
385+
notification_email.send_notification_email(
386+
code, email, [notification], "deletion"
387+
)

0 commit comments

Comments
 (0)