Skip to content

Commit cdc7390

Browse files
Merge pull request #1830 from IFRCGo/feature/notification-fix-for-digests
Fix Weekly Digest header
2 parents 1c8dbe3 + 5fafc76 commit cdc7390

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

api/management/commands/index_and_notify.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ def construct_template_record(self, rtype, record):
609609
}
610610
elif rtype == RecordType.WEEKLY_DIGEST:
611611
rec_obj = {
612+
'resource_uri': settings.FRONTEND_URL,
612613
'active_dref': self.get_weekly_digest_data('dref'),
613614
'active_ea': self.get_weekly_digest_data('ea'),
614615
'funding_coverage': self.get_weekly_digest_data('fund'),
@@ -647,7 +648,7 @@ def notify(self, records, rtype, stype, uid=None):
647648

648649
# Decide if it is a personal notification or batch
649650
if uid is None:
650-
emails = self.gather_subscribers(records, rtype, stype)
651+
emails = list(set(self.gather_subscribers(records, rtype, stype)))
651652
if not len(emails):
652653
return
653654
else:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
{% include "design/head1.html" %}
1+
{% include "design/head3.html" %}
22
{% include "design/main_weekly.html" %}
3-
{% include "design/foot1.html" %}
3+
{% include "design/foot3.html" %}

0 commit comments

Comments
 (0)