Merge pull request #1055 from Hestia-Homes/main

Calico fix
This commit is contained in:
Jun-te Kim 2026-05-07 20:33:27 +01:00 committed by GitHub
commit a6b4deca9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -656,6 +656,15 @@ async def model_engine(body: PlanTriggerRequest):
# address_metadata=addr Switched off to remove injecting landlord inputs
)
# Warning! The EPC API is broken and we are getting missing data for local authority and
# constituency. We're going to add some verbose handling here but there may be problems
if prepared_epc.local_authority is None:
# Fill
prepared_epc.local_authority = ""
if prepared_epc.constituency is None:
prepared_epc.constituency = ""
input_properties.append(
Property(
id=property_id,