Skip to content

Commit

Permalink
Merge pull request #72 from codeforIATI/70-fix-briefly-withdrawn
Browse files Browse the repository at this point in the history
Only set status to active if it is currently set to withdrawn
  • Loading branch information
markbrough authored Nov 8, 2023
2 parents 71f0733 + 8c1fb17 commit 5a76d6c
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 5a76d6c

Please sign in to comment.