chg: [tools] adoc export now includes a skip list

pull/699/head
Alexandre Dulaunoy 2022-03-25 10:12:48 +01:00
parent 94c3788089
commit 2d8eff9de9
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 4 additions and 1 deletions

View File

@ -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()