Skip to content

Commit

Permalink
bug fix for @id in generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfiex authored Nov 29, 2024
1 parent ece6199 commit 4b41a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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"],
Expand Down Expand Up @@ -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
# https://raw.githubusercontent.com/cf-convention/cf-convention.github.io/main/Data/cf-standard-names/85/src/cf-standard-name-table.xml

0 comments on commit 4b41a6c

Please sign in to comment.