From 7f8c185bca558180d2924c6865aba8d876a0957d Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 15 Dec 2023 13:35:39 +0000 Subject: [PATCH] added cleaning step for missing built-form --- backend/Property.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/Property.py b/backend/Property.py index d400d439..705ad361 100644 --- a/backend/Property.py +++ b/backend/Property.py @@ -275,6 +275,10 @@ class Property(Definitions): # We need to implement an EPC cleaning process, which we run on the EPC data, immediately after we download # it self.data["built-form"] = BUILT_FORM_REMAP.get(self.data["built-form"], self.data["built-form"]) + if self.data["built-form"] in self.DATA_ANOMALY_MATCHES: + if self.data["property-type"] == "Flat": + self.data["built-form"] = "Semi-Detached" + self.set_energy() self.set_ventilation() self.set_solar_pv()