mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +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":
|
||||
self.data["built-form"] = "Semi-Detached"
|
||||
|
||||
self.set_year_built()
|
||||
self.set_energy()
|
||||
self.set_ventilation()
|
||||
self.set_solar_pv()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue