Skip to content

Commit

Permalink
just one element
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Feb 20, 2024
1 parent b4f3201 commit 2ef9604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiita_db/metadata_template/prep_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,8 @@ def _get_predecessors(workflow, node):
predecessors = _get_predecessors(wk, node)
cmds_to_create = []
init_artifacts = None
for i, (pnodes, cnode, cxns) in enumerate(predecessors):
# we only need to "loop" over the first element
for pnodes, cnode, cxns in predecessors[:1]:
cdp = cnode.default_parameter
cdp_cmd = cdp.command
params = cdp.values.copy()
Expand Down

0 comments on commit 2ef9604

Please sign in to comment.