From c1aa5716beed1fd9de3f4266918cf977c712e957 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Wed, 18 Feb 2026 17:26:22 +0000 Subject: [PATCH] =?UTF-8?q?priority=20list=20is=20scenarios=20not=20plans?= =?UTF-8?q?=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/categorisation/processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/categorisation/processor.py b/backend/categorisation/processor.py index fd0d9c89..ca58fb9d 100644 --- a/backend/categorisation/processor.py +++ b/backend/categorisation/processor.py @@ -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]