Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Aug 4, 2023
1 parent d3d7a2e commit 097f49f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qiita_db/metadata_template/prep_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,14 +902,17 @@ def _get_predecessors(workflow, node):
if starting_job is not None:
init_artifacts = {
wkartifact_type: f'{starting_job.id}:'}
starting_job = None
else:
init_artifacts = {wkartifact_type: self.artifact.id}

cmds_to_create.reverse()
current_job = None
for i, (cmd, params, rp) in enumerate(cmds_to_create):
previous_job = current_job
if starting_job is not None:
previous_job = starting_job
starting_job = None
else:
previous_job = current_job
if previous_job is None:
req_params = dict()
for iname, dname in rp.items():
Expand Down

0 comments on commit 097f49f

Please sign in to comment.