Skip to content
Snippets Groups Projects
Commit 72ab64e2 authored by Thomas Bock's avatar Thomas Bock :speech_balloon:
Browse files

Update pla_reminder

parent d7ea8649
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,8 @@ opening= {
}
}
body_post = {
'en': "your reservation of the time slot {schedule_date} for calibration is about to expire.\nWould you like to order this calibration?",
'de' : "die Reservierung Ihres Kalibriertermins zum {schedule_date} läuft in Kürze ab.\nMöchten Sie diese Kalibrierung in Auftrag geben?"
'en': "your reservation of the time slot {date} for calibration is about to expire.\nWould you like to order this calibration?",
'de' : "die Reservierung Ihres Kalibriertermins zum {date} läuft in Kürze ab.\nMöchten Sie diese Kalibrierung in Auftrag geben?"
}
body_pre = {
......@@ -55,7 +55,7 @@ subject_pre = {
subject_post = {
'en': "Ihre Kalibrierung am {date} (zum Weiterleiten an {email})",
'de' : "Your calibration at {schedule_datedate} (zum Weiterleiten an {email})"
'de' : "Your calibration at {date} (zum Weiterleiten an {email})"
}
date_post_days = datetime.now() - timedelta(days=post_days)
......@@ -88,10 +88,10 @@ for pla in plannings:
if pla.get("match") == "pre":
mail_subject = subject_pre[lang].format(date=schedule_date, email=email)
mail_body = body_pre[lang].format(schedule_date=schedule_date)
mail_body = body_pre[lang].format(date=schedule_date)
if pla.get("match") == "post":
mail_subject = subject_post[lang].format(date=schedule_date, email=email)
mail_body = body_post[lang].format(schedule_date=schedule_date)
mail_body = body_post[lang].format(date=schedule_date)
mail_closing = closing[lang]
mail = "{}\n\n{}\n\n{}\n\n\n{}".format(mail_opening, mail_body, mail_closing, sign)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment