File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -551,15 +551,15 @@ def make_xml_codelist(use_branch="master"):
551
551
items = ET .SubElement (root , "codelist-items" )
552
552
553
553
for entry in org_id_dict [use_branch ].values ():
554
- if entry [ 'access' ] and entry ['access' ].get ('availableOnline' ):
554
+ if entry . get ( 'access' ) and entry ['access' ].get ('availableOnline' ):
555
555
publicdb = str (1 )
556
556
else :
557
557
publicdb = str (0 )
558
558
559
- if entry [ 'deprecated' ] :
559
+ if entry . get ( 'deprecated' ) :
560
560
status = 'withdrawn'
561
561
else :
562
- if entry [ 'confirmed' ] :
562
+ if entry . get ( 'confirmed' ) :
563
563
status = 'active'
564
564
else :
565
565
status = 'draft'
@@ -572,7 +572,7 @@ def make_xml_codelist(use_branch="master"):
572
572
573
573
description = ET .SubElement (item , "description" )
574
574
ET .SubElement (description , "narrative" ).text = entry ['description' ]['en' ]
575
- if entry [ 'coverage' ] :
575
+ if entry . get ( 'coverage' ) :
576
576
ET .SubElement (item , "category" ).text = entry ['coverage' ][0 ]
577
577
else :
578
578
ET .SubElement (item , "category" ).text = '-'
You can’t perform that action at this time.
0 commit comments