From 4b41a6cb96ef4bf94a28424da2a86aaa19f96839 Mon Sep 17 00:00:00 2001 From: Dan Ellis Date: Fri, 29 Nov 2024 23:54:01 +0000 Subject: [PATCH] bug fix for @id in generate.py --- .github/generate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/generate.py b/.github/generate.py index 00f25cbd5..f3070b05c 100644 --- a/.github/generate.py +++ b/.github/generate.py @@ -110,7 +110,7 @@ def xml_to_json(xml_url): out = { "@context":'_context_', - "id":f'standard_name/{i["id"]}', + "id":f'{i["id"]}', "type": "standard_name", "name": i["id"], "description": i["description"], @@ -139,7 +139,7 @@ def xml_to_json(xml_url): out = { "@context":'_context_', - "id":f'cf:area-type-table/{i["id"]}', + "id":f'{i["id"]}', "type": "area-type-table", "name": i["id"], "description": i["description"], @@ -176,4 +176,4 @@ def xml_to_json(xml_url): # https://github.com/cf-convention/cf-convention.github.io/blob/main/Data/area-type-table/2/src/area-type-table.xml # https://cfconventions.org/Data/cf-standard-names/current/src/cf-standard-name-table.xml -# https://raw.githubusercontent.com/cf-convention/cf-convention.github.io/main/Data/cf-standard-names/85/src/cf-standard-name-table.xml \ No newline at end of file +# https://raw.githubusercontent.com/cf-convention/cf-convention.github.io/main/Data/cf-standard-names/85/src/cf-standard-name-table.xml