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(
331331 )
332332 targets = response ["targets" ]
333333 project_map = {project ["name" ]: project for project in projects }
334+ artifact_map = {}
334335 for data in targets .values ():
335336 downloads = data ["downloads" ]
336337 analyzed_database = downloads ["analyzed_database" ]
@@ -341,6 +342,13 @@ def download_dca_databases(
341342 print (f"Skipping { pretty_name } as it is not in the list of projects" )
342343 continue
343344
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" ]
344352 repository = analyzed_database ["repository" ]
345353 run_id = analyzed_database ["run_id" ]
346354 print (f"=== Finding artifact: { artifact_name } ===" )
You can’t perform that action at this time.
0 commit comments