Skip to content

Commit

Permalink
force __DUPLICATE_FILE_TO_COLLECTION__ 'size' param to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbray authored Sep 7, 2023
1 parent 3db5f56 commit 7a745ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3772,7 +3772,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)
Expand Down

0 comments on commit 7a745ea

Please sign in to comment.