File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
misc/scripts/models-as-data Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,7 @@ def download_dca_databases(
331
331
)
332
332
targets = response ["targets" ]
333
333
project_map = {project ["name" ]: project for project in projects }
334
+ artifact_map = {}
334
335
for data in targets .values ():
335
336
downloads = data ["downloads" ]
336
337
analyzed_database = downloads ["analyzed_database" ]
@@ -341,6 +342,13 @@ def download_dca_databases(
341
342
print (f"Skipping { pretty_name } as it is not in the list of projects" )
342
343
continue
343
344
345
+ if pretty_name in artifact_map :
346
+ print (f"Skipping previous database { artifact_map [pretty_name ]['artifact_name' ]} for { pretty_name } " )
347
+
348
+ artifact_map [pretty_name ] = analyzed_database
349
+
350
+ for pretty_name , analyzed_database in artifact_map .items ():
351
+ artifact_name = analyzed_database ["artifact_name" ]
344
352
repository = analyzed_database ["repository" ]
345
353
run_id = analyzed_database ["run_id" ]
346
354
print (f"=== Finding artifact: { artifact_name } ===" )
You can’t perform that action at this time.
0 commit comments