diff options
author | luxagraf <sng@luxagraf> | 2021-03-05 09:58:01 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf> | 2021-03-05 09:58:01 -0500 |
commit | 79ca47eee28ed68ed9ca69209a7308f3c4c905a3 (patch) | |
tree | a8e49b027c1c7aa7d0116623bd18405744856c01 /app/lttr | |
parent | 8e52a0ff07f7759d289261bbd70e11dac55e810f (diff) |
lttr: fixed a template typo and added status save to make sure we record
successful sends
Diffstat (limited to 'app/lttr')
-rw-r--r-- | app/lttr/mailer.py | 1 | ||||
-rw-r--r-- | app/lttr/templates/lttr/emails/test-range_html_email.html | 2 |
2 files changed, 2 insertions, 1 deletions
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 { <br style="margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" /> <br style="margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;" /> - 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: <a href="{{object.get_absolute_url}}"{{object.get_absolute_url}}</a> + 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: <a href="{{object.get_absolute_url}}">{{object.get_absolute_url}}</a> <hr style="padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;width:50%;margin-top:40px;margin-bottom:40px;margin-right:auto;margin-left:auto;border-width:0;border-top-width:1px;border-top-style:solid;border-top-color:#ddd;" /> </td> |