aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-08-29 21:05:47 +0200
committerWojtek Kosior <koszko@koszko.org>2022-09-09 13:55:05 +0200
commit66385ce948fb646a26e6007af07f5debb8773aed (patch)
tree397e6c8a0658b65a1fcdd326b7c717f5190325a6 /src/hydrilla/proxy
parent52a552d3ed4eabffd078f59adc5f783ec2d50157 (diff)
downloadhaketilo-hydrilla-66385ce948fb646a26e6007af07f5debb8773aed.tar.gz
haketilo-hydrilla-66385ce948fb646a26e6007af07f5debb8773aed.zip
[proxy] never auto-activate mappings marked as "DISABLED"
Diffstat (limited to 'src/hydrilla/proxy')
-rw-r--r--src/hydrilla/proxy/state_impl/_operations/recompute_dependencies.py7
1 files changed, 4 insertions, 3 deletions
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(),)
)