From 3957f0fcf8344367dc2fcd2c71e50900a1ef37aa Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Tue, 24 Sep 2024 18:41:18 +0100 Subject: [PATCH] fixing cleaning descriptions --- etl/epc_clean/epc_attributes/MainheatAttributes.py | 5 +++++ etl/epc_clean/epc_attributes/MainheatControlAttributes.py | 1 + 2 files changed, 6 insertions(+) diff --git a/etl/epc_clean/epc_attributes/MainheatAttributes.py b/etl/epc_clean/epc_attributes/MainheatAttributes.py index a7b4305e..16897133 100644 --- a/etl/epc_clean/epc_attributes/MainheatAttributes.py +++ b/etl/epc_clean/epc_attributes/MainheatAttributes.py @@ -144,6 +144,11 @@ class MainHeatAttributes(Definitions): self.is_edge_case = True return + if self.description == 'community, community': + self.edge_case_result['has_community_scheme'] = True + self.is_edge_case = True + return + def process(self) -> Dict[str, Union[str, bool]]: result: Dict[str, Union[str, bool]] = {f'has_{ds.replace(" ", "_")}': False for ds in self.DISTRIBUTION_SYSTEMS} diff --git a/etl/epc_clean/epc_attributes/MainheatControlAttributes.py b/etl/epc_clean/epc_attributes/MainheatControlAttributes.py index b3cc4df4..2759096d 100644 --- a/etl/epc_clean/epc_attributes/MainheatControlAttributes.py +++ b/etl/epc_clean/epc_attributes/MainheatControlAttributes.py @@ -76,6 +76,7 @@ class MainheatControlAttributes(Definitions): "celect control": 'celect-type control', "celect controls": 'celect-type control', "trv's, program & flow switch": 'trvs, programmer & flow switch', + 'appliance thermostat': 'appliance thermostats', } WELSH_TEXT = {