mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
priority list is scenarios not plans 🟩
This commit is contained in:
parent
ce8c1d23e6
commit
c1aa5716be
1 changed files with 2 additions and 2 deletions
|
|
@ -79,9 +79,9 @@ def choose_cheapest_relevant_plan(
|
|||
if (plan.record.cost_of_works or float("inf")) == min_cost
|
||||
]
|
||||
|
||||
for priority_plan_id in scenario_priority_order:
|
||||
for priority_scenario_id in scenario_priority_order:
|
||||
for plan in cheapest_plans:
|
||||
if plan.id == priority_plan_id:
|
||||
if plan.scenario.id == priority_scenario_id:
|
||||
return plan
|
||||
|
||||
return cheapest_plans[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue