Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Nov 16, 2023
1 parent a32c2b2 commit 8b9ed0d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qiita_pet/handlers/api_proxy/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,12 @@ def _helper_process_params(params):
if artifact.artifact_type in extra_atypes:
extra_atypes.remove(artifact.artifact_type)

for aa in artifact.prep_templates[0].artifact.descendants.nodes():
atype = aa.artifact_type
if artifact_id != aa.id and atype in extra_atypes:
extra_artifacts[atype].append((aa.id, aa.name))
pts = artifact.prep_templates
if pts:
for aa in pts[0].artifact.descendants.nodes():
atype = aa.artifact_type
if artifact_id != aa.id and atype in extra_atypes:
extra_artifacts[atype].append((aa.id, aa.name))

if analysis is not None:
analysis_artifacts = analysis.artifacts
Expand Down

0 comments on commit 8b9ed0d

Please sign in to comment.