From 851f9c82e52300de0e1b9a0e68ed49927d33ca02 Mon Sep 17 00:00:00 2001 From: Arash Date: Fri, 28 Jun 2024 11:33:29 +0200 Subject: [PATCH] Refactor WorkflowContentsManager to use a list for tags instead of a string --- lib/galaxy/managers/workflows.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index 7404c78854a7..b54afd169066 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -1413,7 +1413,7 @@ def _workflow_to_dict_export(self, trans, stored=None, workflow=None, internal=F If `allow_upgrade`, the workflow and sub-workflows might use updated tool versions when refactoring. """ annotation_str = "" - tag_str = "" + tags_list = [] annotation_owner = None if stored is not None: if stored.id: @@ -1424,7 +1424,7 @@ def _workflow_to_dict_export(self, trans, stored=None, workflow=None, internal=F or self.get_item_annotation_str(trans.sa_session, annotation_owner, stored) or "" ) - tag_str = stored.make_tag_string_list() + tags_list = stored.make_tag_string_list() else: # dry run with flushed workflow objects, just use the annotation annotations = stored.annotations @@ -1437,7 +1437,7 @@ def _workflow_to_dict_export(self, trans, stored=None, workflow=None, internal=F data["format-version"] = "0.1" data["name"] = workflow.name data["annotation"] = annotation_str - data["tags"] = tag_str + data["tags"] = tags_list if workflow.uuid is not None: data["uuid"] = str(workflow.uuid) steps: Dict[int, Dict[str, Any]] = {}