mirror of https://github.com/MISP/misp-galaxy
chg: [tools] adoc export now includes a skip list
parent
94c3788089
commit
2d8eff9de9
|
@ -30,12 +30,15 @@ clusters = []
|
||||||
pathClusters = os.path.join(thisDir, '../clusters')
|
pathClusters = os.path.join(thisDir, '../clusters')
|
||||||
pathGalaxies = os.path.join(thisDir, '../galaxies')
|
pathGalaxies = os.path.join(thisDir, '../galaxies')
|
||||||
|
|
||||||
|
skip_list = ["cancer.json"]
|
||||||
|
|
||||||
for f in os.listdir(pathGalaxies):
|
for f in os.listdir(pathGalaxies):
|
||||||
if '.json' in f:
|
if '.json' in f:
|
||||||
with open(os.path.join(pathGalaxies, f), 'r') as f_in:
|
with open(os.path.join(pathGalaxies, f), 'r') as f_in:
|
||||||
galaxy_data = json.load(f_in)
|
galaxy_data = json.load(f_in)
|
||||||
if galaxy_data.get('namespace') != 'deprecated':
|
if galaxy_data.get('namespace') != 'deprecated':
|
||||||
clusters.append(f)
|
if f not in skip_list:
|
||||||
|
clusters.append(f)
|
||||||
|
|
||||||
clusters.sort()
|
clusters.sort()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue