mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge branch 'main' into feature/magicplan-api-client
This commit is contained in:
commit
6a43b5c69b
2 changed files with 10 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -758,7 +758,7 @@ class Costs:
|
|||
:return:
|
||||
"""
|
||||
|
||||
removal_cost = ROOM_HEATER_REMOVAL_COST * n_rooms
|
||||
removal_cost = ROOM_HEATER_REMOVAL_COST * n_rooms + 200 # Adding a baseline £200 cost after commercial feedback
|
||||
removal_labour_hours = ROOM_HEATER_REMOVAL_LABOUR_HOURS * n_rooms
|
||||
|
||||
vat = removal_cost * self.VAT_RATE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue