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

This commit is contained in:
Alexandre Dulaunoy 2022-03-25 10:12:48 +01:00
parent 94c3788089
commit 2d8eff9de9
Signed by: adulau
GPG key ID: 09E2CD4944E6CBCD

View file

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