From 076b825b0527325b9cc7069f045ead2de47ace78 Mon Sep 17 00:00:00 2001 From: Simon Bray <32272674+simonbray@users.noreply.github.com> Date: Thu, 7 Sep 2023 12:01:40 +0100 Subject: [PATCH] force __DUPLICATE_FILE_TO_COLLECTION__ 'size' param to integer --- lib/galaxy/tools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 58ff950c7c4f..6fa55260474e 100644 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -3706,7 +3706,7 @@ class DuplicateFileToCollectionTool(DatabaseOperationTool): def produce_outputs(self, trans, out_data, output_collections, incoming, history, **kwds): hda = incoming["input"] - number = incoming["number"] + number = int(incoming["number"]) element_identifier = incoming["element_identifier"] elements = { f"{element_identifier} {n}": hda.copy(copy_tags=hda.tags, flush=False) for n in range(1, number + 1)