From f15873c813d3e7b6c3aff8b9246a541ccf93617c Mon Sep 17 00:00:00 2001 From: Keith James Date: Fri, 8 Sep 2023 14:16:41 +0100 Subject: [PATCH] Bugfix: use annotate_results_collection to update metadata The metadata update code path for ONT directly calls a lower level function which doesn't handle multiplexing, whereas is should call annotate_results_collection, which does. --- src/npg_irods/ont.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/npg_irods/ont.py b/src/npg_irods/ont.py index 0b26b2a2..649be2c6 100644 --- a/src/npg_irods/ont.py +++ b/src/npg_irods/ont.py @@ -279,9 +279,8 @@ def ensure_secondary_metadata_updated( ) component = Component(expt, slot, tag_id) - flowcells = find_flowcells_by_component(mlwh_session, component) - return _do_secondary_metadata_and_perms_update(item, flowcells) + return annotate_results_collection(item, component, mlwh_session=mlwh_session) def find_recent_expt(sess: Session, since: datetime) -> list[str]: