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

Commit

Permalink
- Created new configs file for COF25-EOI
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzabinkhalid committed Oct 22, 2024
1 parent b69c9b6 commit 1e5f322
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
46 changes: 46 additions & 0 deletions config/key_report_mappings/cof25_eoi_key_report_mapping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
from config.key_report_mappings.model import extract_postcode
from config.key_report_mappings.model import FormMappingItem
from config.key_report_mappings.model import KeyReportMapping

COF25_EOI_KEY_REPORT_MAPPING = KeyReportMapping(
round_id="9104d809-0fb0-4144-b514-55e81cc2b6fa",
mapping=[
FormMappingItem(
form_name="organisation-details-25",
form_name_cy="manylion-y-sefydliad",
key="SMRWjl",
return_field="organisation_name",
),
FormMappingItem(
form_name="development-support-provider-25",
form_name_cy="darparwr-cymorth-datblygu",
key="xWnVof",
return_field="lead_contact_name",
),
FormMappingItem(
form_name="about-your-asset-25",
form_name_cy="ynglyn-ach-ased",
key="Ihjjyi",
return_field="asset_type",
),
FormMappingItem(
form_name="about-your-asset-25",
form_name_cy="ynglyn-ach-ased",
key="dnqIdW",
return_field="geography",
formatter=extract_postcode,
),
FormMappingItem(
form_name="your-funding-request-25",
form_name_cy="eich-cais-am-gyllid",
key="fZAMFv",
return_field="capital",
),
FormMappingItem(
form_name="development-support-provider-25",
form_name_cy="darparwr-cymorth-datblygu",
key="NQoGIm",
return_field="applicant_email",
),
],
)
2 changes: 1 addition & 1 deletion config/key_report_mappings/cof_eoi_key_report_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from config.key_report_mappings.model import KeyReportMapping

COF_EOI_KEY_REPORT_MAPPING = KeyReportMapping(
round_id=["6a47c649-7bac-4583-baed-9c4e7a35c8b3", "9104d809-0fb0-4144-b514-55e81cc2b6fa"],
round_id="6a47c649-7bac-4583-baed-9c4e7a35c8b3",
mapping=[
FormMappingItem(
form_name="organisation-details",
Expand Down
6 changes: 5 additions & 1 deletion config/key_report_mappings/mappings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from collections import defaultdict

from config.key_report_mappings.cof25_eoi_key_report_mapping import (
COF25_EOI_KEY_REPORT_MAPPING,
)
from config.key_report_mappings.cof_eoi_key_report_mapping import (
COF_EOI_KEY_REPORT_MAPPING,
)
Expand All @@ -25,10 +28,11 @@
{
CYP_R1_KEY_REPORT_MAPPING.round_id: CYP_R1_KEY_REPORT_MAPPING.mapping,
DPIF_R2_KEY_REPORT_MAPPING.round_id: DPIF_R2_KEY_REPORT_MAPPING.mapping,
COF_EOI_KEY_REPORT_MAPPING.round_id: COF_EOI_KEY_REPORT_MAPPING.mapping,
COF25_EOI_KEY_REPORT_MAPPING.round_id: COF25_EOI_KEY_REPORT_MAPPING.mapping,
COF_R2_KEY_REPORT_MAPPING.round_id: COF_R2_KEY_REPORT_MAPPING.mapping,
COF_R3W2_KEY_REPORT_MAPPING.round_id: COF_R3W2_KEY_REPORT_MAPPING.mapping,
**({key: COF_KEY_REPORT_MAPPING.mapping for key in COF_KEY_REPORT_MAPPING.round_id}),
**({key: COF_EOI_KEY_REPORT_MAPPING.mapping for key in COF_EOI_KEY_REPORT_MAPPING.round_id}),
},
)

Expand Down

0 comments on commit 1e5f322

Please sign in to comment.