Private
Public Access
1
0

adding names

This commit is contained in:
Sander Roosendaal
2019-08-19 21:56:37 +02:00
parent 6998ab9306
commit fc479c2b61
3 changed files with 6 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ class Command(BaseCommand):
alert.manager.email,
alert.manager.first_name,
alert.manager.last_name,
alert.rower.user.first_name,
alert.name,
stats,debug=True)
# advance next_run

View File

@@ -758,7 +758,7 @@ def handle_updatedps(useremail, workoutids, debug=False,**kwargs):
@app.task
def handle_send_email_alert(
useremail, userfirstname, userlastname, stats, **kwargs):
useremail, userfirstname, userlastname, rowerfirstname, alertname, stats, **kwargs):
if 'debug' in kwargs:
debug = kwargs['debug']
@@ -777,6 +777,8 @@ def handle_send_email_alert(
'first_name':userfirstname,
'last_name':userlastname,
'siteurl':siteurl,
'rowerfirstname':rowerfirstname,
'alertname':alertname,
}
res = send_template_email(from_email,[useremail],subject,

View File

@@ -4,7 +4,7 @@
<p>Dear <strong>{{ first_name }}</strong>,</p>
<p>
Here is the report for your alert on <a href="{{ siteurl }}">rowsandall.com</a>.
Here is the report for your alert <strong>{{ alertname }}</strong> on <a href="{{ siteurl }}">rowsandall.com</a>. This is a report for your athlete {{ rowerfirstname }}.
</p>
{% for key, value in report.items() %}