Skip to content

Commit

Permalink
Only set status to active if it is currently set to withdrawn
Browse files Browse the repository at this point in the history
  • Loading branch information
markbrough committed Nov 8, 2023
1 parent 76bb085 commit 8c1fb17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion importers/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def update_codelist_item(self, codelist_item, code_dict, namespaces=None):
# the status is set manually. This is required in case
# a codelist briefly disappears then reappears in the source
# data.
codelist_item.set('status', 'active')
if codelist_item.get('status') == 'withdrawn':
codelist_item.set('status', 'active')
return codelist_item

def source_to_xml(self):
Expand Down

0 comments on commit 8c1fb17

Please sign in to comment.