From dee4f889c340865d9dced6611337de4b9027245f Mon Sep 17 00:00:00 2001 From: Jeremy Muhlich Date: Sun, 17 Nov 2024 00:13:26 -0500 Subject: [PATCH] Fix fileannotation download bug Due to a mis-indented line and a reused variable, sometimes duplicate omero.figure json content is downloaded to a different file's path. --- src/generate_xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate_xml.py b/src/generate_xml.py index 6af8e2d..1202933 100644 --- a/src/generate_xml.py +++ b/src/generate_xml.py @@ -976,7 +976,7 @@ def list_file_ids(ome: OME) -> dict: if ann.namespace != "omero.web.figure.json": path = get_server_path(ann.annotation_refs, ome.structured_annotations) - id_list[ann.id] = path + id_list[ann.id] = path return id_list