mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-22 23:07:19 +00:00
chg: [tools] adoc export now includes a skip list
This commit is contained in:
parent
94c3788089
commit
2d8eff9de9
1 changed files with 4 additions and 1 deletions
|
@ -30,12 +30,15 @@ clusters = []
|
|||
pathClusters = os.path.join(thisDir, '../clusters')
|
||||
pathGalaxies = os.path.join(thisDir, '../galaxies')
|
||||
|
||||
skip_list = ["cancer.json"]
|
||||
|
||||
for f in os.listdir(pathGalaxies):
|
||||
if '.json' in f:
|
||||
with open(os.path.join(pathGalaxies, f), 'r') as f_in:
|
||||
galaxy_data = json.load(f_in)
|
||||
if galaxy_data.get('namespace') != 'deprecated':
|
||||
clusters.append(f)
|
||||
if f not in skip_list:
|
||||
clusters.append(f)
|
||||
|
||||
clusters.sort()
|
||||
|
||||
|
|
Loading…
Reference in a new issue