util/generate-hugo-content.py: minor re-org

We get the cluster first since clusters encompass modules.
This commit is contained in:
Alan Orth 2021-12-13 13:20:09 +02:00
parent fd3be3163f
commit 14edfab18b
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -40,11 +40,12 @@ def parseSchema(schema_df):
# Strip just in case
element_name = element_name.strip()
# For example Assurance, Certification, Core, Impact, etc
module = row["idss schema module"].capitalize()
# For example Certifying Body, FSC audit, Certificate, etc
cluster = row["idss element cluster"].capitalize()
# For example Assurance, Certification, Core, Impact, etc
module = row["idss schema module"].capitalize()
# Generate a URL-safe version of the element name, though we need to
# think about what field we want to use here.
element_name_safe = cluster.replace(" ", "-").lower() + "-" + element_name