From 2e243e03737b1d65a82a73c1469edba111cfb0b8 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Mon, 29 Aug 2022 21:05:47 +0200 Subject: [proxy] never auto-activate mappings marked as "DISABLED" --- .../proxy/state_impl/_operations/recompute_dependencies.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/hydrilla/proxy/state_impl') diff --git a/src/hydrilla/proxy/state_impl/_operations/recompute_dependencies.py b/src/hydrilla/proxy/state_impl/_operations/recompute_dependencies.py index b62004c..2ec3600 100644 --- a/src/hydrilla/proxy/state_impl/_operations/recompute_dependencies.py +++ b/src/hydrilla/proxy/state_impl/_operations/recompute_dependencies.py @@ -57,10 +57,11 @@ def _get_infos_of_type(cursor: sqlite3.Cursor, info_type: t.Type[AnyInfoVar],) \ ive.repo, ive.repo_iteration FROM - item_versions_extra AS ive - JOIN items AS i USING (item_id) + item_versions_extra AS ive + JOIN items AS i USING (item_id) + LEFT JOIN mapping_statuses AS ms USING (item_id) WHERE - i.type = ?; + i.type = ? AND COALESCE(ms.enabled != 'D', TRUE); ''', (info_type.type.value[0].upper(),) ) -- cgit v1.2.3