mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
minor bug for when no valuation increase data
This commit is contained in:
parent
1eb6f4c2a7
commit
15ec6460d2
1 changed files with 1 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
# recommendation from being default to not default, we'll need to re-run this process to re-calculate the
|
||||
# the portfolion level impact
|
||||
|
||||
total_valuation_increase = sum(property_valuation_increases)
|
||||
total_valuation_increase = sum([v for v in property_valuation_increases if v is not None])
|
||||
labour_days = round(max(
|
||||
[sum(r["labour_days"] for r in rec_group if r["default"]) for p_id, rec_group in recommendations.items()]
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue