From 09c2157f1a2ec750b67ce2a1fbbcc58cee795dd9 Mon Sep 17 00:00:00 2001 From: Krzysztof Findeisen Date: Mon, 25 Nov 2024 11:16:09 -0800 Subject: [PATCH] Include all existing snaps in exposure set. Because of an indentation error, the code previously only stored the last snap, or nothing if the last snap was not present. --- python/activator/activator.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/activator/activator.py b/python/activator/activator.py index bff8ba29..d1039577 100644 --- a/python/activator/activator.py +++ b/python/activator/activator.py @@ -455,10 +455,10 @@ def process_visit(expected_visit: FannedOutVisit): snap, expected_visit.detector, ) - if oid: - _log.debug("Found object %s already present", oid) - exp_id = mwi.ingest_image(oid) - expid_set.add(exp_id) + if oid: + _log.debug("Found object %s already present", oid) + exp_id = mwi.ingest_image(oid) + expid_set.add(exp_id) _log.debug("Waiting for snaps...") start = time.time()