Skip to content

Commit fdff904

Browse files
committed
rm parents
1 parent d982171 commit fdff904

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

qiita_db/processing_job.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,13 +1241,15 @@ def release(self):
12411241
if "analysis" in pvals:
12421242
analysis = qdb.analysis.Analysis(pvals["analysis"])
12431243
if "artifacts" in pvals:
1244-
parents = [
1245-
qdb.artifact.Artifact(aid) for aid in pvals["artifacts"]
1246-
]
12471244
# as this is going to be the first artifact of an analysis, we
12481245
# need to provide the data type so we are going to make sure all
12491246
# the parents data_types are the same and assing that one
1250-
data_type = set([p.data_type for p in parents])
1247+
data_type = set(
1248+
[
1249+
qdb.artifact.Artifact(aid).data_type
1250+
for aid in pvals["artifacts"]
1251+
]
1252+
)
12511253
if len(data_type) != 1:
12521254
raise ValueError(
12531255
f"Not valida parents data_types: {data_type}"

0 commit comments

Comments
 (0)