Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category is sometimes set to "-" in download.xml #212

Open
andylolz opened this issue Jan 18, 2019 · 0 comments
Open

Category is sometimes set to "-" in download.xml #212

andylolz opened this issue Jan 18, 2019 · 0 comments

Comments

@andylolz
Copy link
Contributor

Relevant code:

if entry.get('coverage'):
ET.SubElement(item, "category").text = entry['coverage'][0]
else:
ET.SubElement(item, "category").text = '-'

I guess this is because the country code used isn’t on ISO 3166. In these cases, it would be preferable to either:

  • Use an empty string instead of "-", or
  • Use the country code provided (e.g. XM; XI) because as far as IATI is concerned that’s still fine (given the Country codelist is incomplete).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant