mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 16:57:18 +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,11 +30,14 @@ 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':
|
||||||
|
if f not in skip_list:
|
||||||
clusters.append(f)
|
clusters.append(f)
|
||||||
|
|
||||||
clusters.sort()
|
clusters.sort()
|
||||||
|
|
Loading…
Reference in a new issue