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

Commit

Permalink
fix application deadline reminder manual trigger (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwan-samarasinghe authored Jul 26, 2024
1 parent 923cf1b commit 257ad90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/send_application_on_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,12 @@ 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["application"]["account_name"],
to_email=email.get("email"),
content=create_qa_base64file(application["application"], True),
full_name=application["application"]["account_name"],
content={
"application": create_qa_base64file(application["application"], True),
"contact_help_email": application["contact_help_email"],
},
)
current_app.logger.info(f"Message added to the queue msg_id: [{message_id}]")
current_app.logger.info(f"Sent {count} {'emails' if count > 1 else 'email'}")
Expand Down

0 comments on commit 257ad90

Please sign in to comment.