File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 } "
You can’t perform that action at this time.
0 commit comments