mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
minor changes to EpcSearcher
This commit is contained in:
parent
c11eb1abaa
commit
e82fa9c11f
3 changed files with 2 additions and 2 deletions
|
|
@ -240,6 +240,7 @@ class Property(Definitions):
|
||||||
if self.data["property-type"] == "Flat":
|
if self.data["property-type"] == "Flat":
|
||||||
self.data["built-form"] = "Semi-Detached"
|
self.data["built-form"] = "Semi-Detached"
|
||||||
|
|
||||||
|
self.set_year_built()
|
||||||
self.set_energy()
|
self.set_energy()
|
||||||
self.set_ventilation()
|
self.set_ventilation()
|
||||||
self.set_solar_pv()
|
self.set_solar_pv()
|
||||||
|
|
|
||||||
|
|
@ -540,7 +540,7 @@ class SearchEpc:
|
||||||
if response["status"] == 200:
|
if response["status"] == 200:
|
||||||
(
|
(
|
||||||
self.newest_epc, self.older_epcs, self.full_sap_epc, self.address_clean, self.postcode_clean
|
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
|
return
|
||||||
|
|
||||||
# Step 4: If we still don't have an EPC, we estimate the EPC data
|
# Step 4: If we still don't have an EPC, we estimate the EPC data
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,6 @@ async def trigger_plan(body: PlanTriggerRequest):
|
||||||
|
|
||||||
logger.info("Getting spatial data")
|
logger.info("Getting spatial data")
|
||||||
for p in input_properties:
|
for p in input_properties:
|
||||||
p.set_year_built()
|
|
||||||
p.get_spatial_data(uprn_filenames)
|
p.get_spatial_data(uprn_filenames)
|
||||||
|
|
||||||
# The materials data could be cached or local so we don't need to make
|
# The materials data could be cached or local so we don't need to make
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue