Skip to content

Commit e3d38e2

Browse files
committed
Change new format script for coverages
1 parent 33877d6 commit e3d38e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/newFormat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def create_tag(title):
3131
"code":old['code'],
3232
"url":old['url'],
3333
"registerType":create_tag(old['registerType']),
34-
"jurisdiction":[list(map(lambda x: x['countryCode'],old['jurisdiction'])) if old['jurisdiction'] else None],
35-
"subnationalJurisdiction":[list(map(lambda x: x['regionCode'],old['subnational'])) if old['subnational'] else None],
34+
"coverage":list(map(lambda x: x['countryCode'],old['jurisdiction'])) if old['jurisdiction'] else None,
35+
"subnationalCoverage":list(map(lambda x: x['regionCode'],old['subnational'])) if old['subnational'] else None,
3636
"sector":list(map(lambda x: create_tag(x['name']),old['sector'])) if old['sector'] else None,
3737
"structure":list(map(lambda x: struct_map[create_tag(x['name'])],old['structure'])) if old['structure'] else None,
3838
"access": {

0 commit comments

Comments
 (0)