Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #352 from communitiesuk/fix_incomplete_application…
Browse files Browse the repository at this point in the history
…_script

Fix to include full_name in Notification.send()
  • Loading branch information
ksp37-dluhc authored Jul 19, 2024
2 parents 49ab524 + ac4b58b commit 1736bb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/send_application_on_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def send_incomplete_applications_after_deadline(
try:
account_id = external_services.get_account(account_id=application.get("account_id"))
application["account_email"] = account_id.email
application["account_name"] = account_id.full_name
applications_to_send.append({"application": application})
except Exception:
handle_error(
Expand Down Expand Up @@ -94,6 +95,7 @@ def send_incomplete_applications_after_deadline(
application["contact_help_email"] = fund_rounds.get("contact_email")
message_id = Notification.send(
template_type=Config.NOTIFY_TEMPLATE_INCOMPLETE_APPLICATION, # noqa
full_name=application["account_name"],
to_email=email.get("email"),
content=application,
)
Expand Down

0 comments on commit 1736bb6

Please sign in to comment.