From 0265e97a2b547273122c66fc94568430072ea97d Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 7 Dec 2021 22:57:09 +0200 Subject: [PATCH] util/generate-hugo-content.py: read schema from CSV Read the schema fields from CSV instead of Excel now that there is a copy here in the repository. --- util/generate-hugo-content.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/generate-hugo-content.py b/util/generate-hugo-content.py index 8f910079..3e4c61cd 100755 --- a/util/generate-hugo-content.py +++ b/util/generate-hugo-content.py @@ -177,7 +177,7 @@ parser.add_argument( parser.add_argument( "-i", "--input-file", - help="Path to schema fields file (idss_schema_fields.xlsx).", + help="Path to schema fields file (schema-fields.csv).", required=True, type=argparse.FileType("r"), ) @@ -198,7 +198,7 @@ os.makedirs("site/content/terms", mode=0o755, exist_ok=True) if args.debug: print(f"Opening {args.input_file.name}") -df = pd.read_excel(args.input_file.name) +df = pd.read_csv(args.input_file.name) # Added inplace=True df.dropna(how="all", axis=1, inplace=True) df.fillna("", inplace=True)