Commit b07df3bc authored by Boris Baldassari's avatar Boris Baldassari
Browse files

Fix curate_clearlydefined script.

parent df660eaf
......@@ -17,7 +17,6 @@ import requests
import getopt
import sys
import yaml
import numpy as np
from datetime import datetime
from os.path import isfile
......@@ -53,13 +52,18 @@ with open(file_in, 'r') as f:
exit()
packages = doc['evaluator']['violations']
packages_np = np.array(packages)
packages = np.unique(packages_np)
# Make the list of packages unique based on 'id'
packages_uniq = {}
for package in packages:
packages_uniq[package['pkg']] = package
packages = packages_uniq
licenses = {}
urls={}
# Loop through all violations IDs
for package in packages:
for package_id in packages:
package = packages[package_id]
pkg = package['pkg']
print(f"- Working on '{pkg}'..", end=" ")
# Transform coordinates
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment