mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-26 00:28:19 +01:00
util/generate-hugo-content.py: minor re-org
We get the cluster first since clusters encompass modules.
This commit is contained in:
parent
fd3be3163f
commit
14edfab18b
@ -40,11 +40,12 @@ def parseSchema(schema_df):
|
|||||||
# Strip just in case
|
# Strip just in case
|
||||||
element_name = element_name.strip()
|
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
|
# For example Certifying Body, FSC audit, Certificate, etc
|
||||||
cluster = row["idss element cluster"].capitalize()
|
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
|
# Generate a URL-safe version of the element name, though we need to
|
||||||
# think about what field we want to use here.
|
# think about what field we want to use here.
|
||||||
element_name_safe = cluster.replace(" ", "-").lower() + "-" + element_name
|
element_name_safe = cluster.replace(" ", "-").lower() + "-" + element_name
|
||||||
|
Loading…
Reference in New Issue
Block a user