minor changes to EpcSearcher

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-02 15:44:42 +00:00
parent c11eb1abaa
commit e82fa9c11f
3 changed files with 2 additions and 2 deletions

View file

@ -240,6 +240,7 @@ class Property(Definitions):
if self.data["property-type"] == "Flat":
self.data["built-form"] = "Semi-Detached"
self.set_year_built()
self.set_energy()
self.set_ventilation()
self.set_solar_pv()

View file

@ -540,7 +540,7 @@ class SearchEpc:
if response["status"] == 200:
(
self.newest_epc, self.older_epcs, self.full_sap_epc, self.address_clean, self.postcode_clean
) = self.extract_epc_data(address=self.ordnance_survey_client.most_relevant_result["ADDRESS"])
) = self.extract_epc_data()
return
# Step 4: If we still don't have an EPC, we estimate the EPC data

View file

@ -109,7 +109,6 @@ async def trigger_plan(body: PlanTriggerRequest):
logger.info("Getting spatial data")
for p in input_properties:
p.set_year_built()
p.get_spatial_data(uprn_filenames)
# The materials data could be cached or local so we don't need to make