mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
allow optional contingency
This commit is contained in:
parent
81ce9fd4de
commit
85b05563ba
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def prepare_plan_data(
|
|||
|
||||
# plan costing data
|
||||
cost_of_works = sum([r["total"] for r in default_recommendations])
|
||||
contingency_cost = sum([r["contingency"] for r in default_recommendations])
|
||||
contingency_cost = sum([r.get("contingency", 0) for r in default_recommendations])
|
||||
|
||||
return {
|
||||
"portfolio_id": body.portfolio_id,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue