From 7d97c2a27bd987a4d0fc247960394041e4c06b0b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 25 Jan 2022 21:37:54 +0000 Subject: [PATCH] Fix notification digest crash --- app/templates/emails/notification_digest.html | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/app/templates/emails/notification_digest.html b/app/templates/emails/notification_digest.html index 87d64ac..af5e318 100644 --- a/app/templates/emails/notification_digest.html +++ b/app/templates/emails/notification_digest.html @@ -2,9 +2,9 @@ {% block content %} -{% for type, group in notifications | groupby("package.title") %} +{% for title, group in notifications | select("package") | groupby("package.title") %}

- {{ type or _("Other Notifications") }} + {{ title }}

{% endfor %} +{% for group in notifications | reject("package") %} +

+ {{ _("Other Notifications") }} +

+ + +{% endfor %}

{{ _("View Notifications") }}