Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Added fund DPI template configuration and: (#126)
Browse files Browse the repository at this point in the history
- updated configuration for template INCOMPLETE_APPLICATION_TEMPLATE_ID  for each fund as currently template for fund COF is being used for all the funds.
  • Loading branch information
ramsharma-prog authored Oct 6, 2023
1 parent ca71f33 commit 43ab95f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/notification/model/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def send_incomplete_application(

response = notifications_client.send_email_notification(
email_address=contents.contact_info,
template_id=Config.INCOMPLETE_APPLICATION_TEMPLATE_ID,
template_id=Config.INCOMPLETE_APPLICATION_TEMPLATE_ID[
contents.fund_id
]["template_id"],
personalisation={
"name of fund": contents.fund_name,
"application reference": contents.reference,
Expand Down
27 changes: 23 additions & 4 deletions config/envs/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,31 @@ class DefaultConfig:
"fund_name": "CYP",
"template_id": "1c69f104-edfa-49d7-9bab-cbbd30c323f3",
},
"f493d512-5eb4-11ee-8c99-0242ac120002": {
"fund_name": "DPI",
"template_id": "6e1d80ac-c843-4b47-9946-ecad542dd5de",
},
}

INCOMPLETE_APPLICATION_TEMPLATE_ID = {
"47aef2f5-3fcb-4d45-acb5-f0152b5f03c4": {
"fund_name": "COF",
"template_id": "fc8cff7c-a595-4590-a1a4-eccda48d8604",
},
"13b95669-ed98-4840-8652-d6b7a19964db": {
"fund_name": "NSTF",
"template_id": "d4c9cb6f-c36d-4157-a5e4-0b7bc323e332",
},
"1baa0f68-4e0a-4b02-9dfe-b5646f089e65": {
"fund_name": "CYP",
"template_id": "5e308d1e-4d1d-4572-9c99-9a8396224aed",
},
"f493d512-5eb4-11ee-8c99-0242ac120002": {
"fund_name": "DPI",
"template_id": "7980eee3-5a40-42b8-98dc-ba3b11ea4e65",
},
}

INCOMPLETE_APPLICATION_TEMPLATE_ID = os.environ.get(
"INCOMPLETE_APPLICATION_TEMPLATE_ID",
"fc8cff7c-a595-4590-a1a4-eccda48d8604",
)
APPLICATION_DEADLINE_REMINDER_TEMPLATE_ID = os.environ.get(
"APPLICATION_DEADLINE_REMINDER_TEMPLATE_ID",
"e41cc73d-6947-4cbb-aedd-4ab2f470a2d2",
Expand Down

0 comments on commit 43ab95f

Please sign in to comment.