mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Implemented poc for funding optmiser
This commit is contained in:
parent
9963151944
commit
cc187fe8d6
1 changed files with 5 additions and 0 deletions
|
|
@ -1027,6 +1027,11 @@ async def model_engine(body: PlanTriggerRequest):
|
|||
p.id, recommendations, selected
|
||||
)
|
||||
|
||||
# TODO: functionise
|
||||
for measure in funded_measures:
|
||||
if "+mechanical_ventilation" in measure["type"]:
|
||||
measure["type"] = measure["type"].split("+mechanical_ventilation")[0]
|
||||
|
||||
p.insert_funding(
|
||||
scheme=scheme,
|
||||
funded_measures=funded_measures,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue