Skip to content

Commit

Permalink
Rename tender reminder email to siae
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 9, 2023
1 parent 77948bc commit 9b881a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,17 +352,17 @@
# -- tender: siae & partners
MAILJET_TENDERS_SIAE_PRESENTATION_TEMPLATE_ID = env.int("MAILJET_TENDERS_SIAE_PRESENTATION_TEMPLATE_ID", 3679205)
MAILJET_TENDERS_PARTNER_PRESENTATION_TEMPLATE_ID = env.int("MAILJET_TENDERS_PARTNER_PRESENTATION_TEMPLATE_ID", 3868179)
MAILJET_TENDERS_CONTACTED_REMINDER_2D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_CONTACTED_REMINDER_2D_TEMPLATE_ID", 4716371
MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_2D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_2D_TEMPLATE_ID", 4716371
)
MAILJET_TENDERS_CONTACTED_REMINDER_3D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_CONTACTED_REMINDER_3D_TEMPLATE_ID", 4716387
MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_3D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_3D_TEMPLATE_ID", 4716387
)
MAILJET_TENDERS_CONTACTED_REMINDER_4D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_CONTACTED_REMINDER_4D_TEMPLATE_ID", 4716426
MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_4D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_4D_TEMPLATE_ID", 4716426
)
MAILJET_TENDERS_INTERESTED_REMINDER_2D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_INTERESTED_REMINDER_2D_TEMPLATE_ID", 4744896
MAILJET_TENDERS_SIAE_INTERESTED_REMINDER_2D_TEMPLATE_ID = env.int(
"MAILJET_TENDERS_SIAE_INTERESTED_REMINDER_2D_TEMPLATE_ID", 4744896
)
# -- tender: author
MAILJET_TENDERS_AUTHOR_CONFIRMATION_VALIDATED_TEMPLATE_ID = env.int(
Expand Down
8 changes: 4 additions & 4 deletions lemarche/www/tenders/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ def send_tender_contacted_reminder_email_to_siaes(
):
if days_since_email_send_date == 2:
email_subject = f"Un {tender.get_kind_display().lower()} pour vous sur le Marché de l'inclusion"
template_id = settings.MAILJET_TENDERS_CONTACTED_REMINDER_2D_TEMPLATE_ID
template_id = settings.MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_2D_TEMPLATE_ID
elif days_since_email_send_date == 3:
email_subject = f"Avez vous consulté le {tender.get_kind_display().lower()} ?"
template_id = settings.MAILJET_TENDERS_CONTACTED_REMINDER_3D_TEMPLATE_ID
template_id = settings.MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_3D_TEMPLATE_ID
elif days_since_email_send_date == 4:
email_subject = f"L'opportunité : {tender.get_kind_display().lower()} a besoin de votre réponse !"
template_id = settings.MAILJET_TENDERS_CONTACTED_REMINDER_4D_TEMPLATE_ID
template_id = settings.MAILJET_TENDERS_SIAE_CONTACTED_REMINDER_4D_TEMPLATE_ID
else:
error_message = f"send_tender_contacted_reminder_email_to_siaes: days_since_email_send_date has a non-managed value ({days_since_email_send_date})" # noqa
raise Exception(error_message)
Expand Down Expand Up @@ -291,7 +291,7 @@ def send_tender_interested_reminder_email_to_siae(
}

api_mailjet.send_transactional_email_with_template(
template_id=settings.MAILJET_TENDERS_INTERESTED_REMINDER_2D_TEMPLATE_ID,
template_id=settings.MAILJET_TENDERS_SIAE_INTERESTED_REMINDER_2D_TEMPLATE_ID,
subject=email_subject,
recipient_email=recipient_email,
recipient_name=recipient_name,
Expand Down

0 comments on commit 9b881a5

Please sign in to comment.