Skip to content

Commit

Permalink
do not add ancestors
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Feb 23, 2024
1 parent 1e483a7 commit f1a6945
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 @@ -809,7 +809,8 @@ def _get_predecessors(workflow, node):
parents.remove(pnode)
if parents:
for pnode in parents:
pred.extend(_get_predecessors(workflow, pnode))
# [-1] just adding the parent and not its ancestors
pred.extend([_get_predecessors(workflow, pnode)[-1]])

pred.append(data)
return pred
Expand Down

0 comments on commit f1a6945

Please sign in to comment.