fix: [adoc] ignore deprecated galaxies

This commit is contained in:
Christophe Vandeplas 2019-10-27 18:35:44 +01:00
parent 4ab9bbbfa3
commit 76668d0ebb

View file

@ -28,9 +28,13 @@ thisDir = os.path.dirname(__file__)
clusters = []
pathClusters = os.path.join(thisDir, '../clusters')
pathGalaxies = os.path.join(thisDir, '../galaxies')
for f in os.listdir(pathClusters):
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)
clusters.sort()