From 79ca47eee28ed68ed9ca69209a7308f3c4c905a3 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 5 Mar 2021 09:58:01 -0500 Subject: lttr: fixed a template typo and added status save to make sure we record successful sends --- app/lttr/mailer.py | 1 + app/lttr/templates/lttr/emails/test-range_html_email.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/lttr') diff --git a/app/lttr/mailer.py b/app/lttr/mailer.py index 9ddcfa0..40f1003 100644 --- a/app/lttr/mailer.py +++ b/app/lttr/mailer.py @@ -40,6 +40,7 @@ class SendShit(): status.status=1 if self.verbose==1: print("successfully sent %s the newsletter mailing %s"%(subscriber, self.mailing)) + status.save() else: # not new, check if error and resend or just continue if status.status == 2: diff --git a/app/lttr/templates/lttr/emails/test-range_html_email.html b/app/lttr/templates/lttr/emails/test-range_html_email.html index e4048bc..bd0b3e3 100644 --- a/app/lttr/templates/lttr/emails/test-range_html_email.html +++ b/app/lttr/templates/lttr/emails/test-range_html_email.html @@ -189,7 +189,7 @@ ul li, ol li {

- If you'd like to view a larger version, read some backstory, and see a video of the development process in Darktable, head on over to: + If you'd like to view a larger version, read some backstory, and see a video of the development process in Darktable, head on over to: {{object.get_absolute_url}}
-- cgit v1.2.3-70-g09d2