Skip to content

Commit

Permalink
Change hrp and gho to y/n
Browse files Browse the repository at this point in the history
  • Loading branch information
b-j-mills committed Feb 12, 2025
1 parent 679a752 commit 0365e63
Show file tree
Hide file tree
Showing 3 changed files with 20,375 additions and 20,377 deletions.
6 changes: 2 additions & 4 deletions src/hdx/scraper/acled/acled.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,8 @@ def download_data(self, current_year: int) -> None:
country_iso = "XKX"
hrp = Country.get_hrp_status_from_iso3(country_iso)
gho = Country.get_gho_status_from_iso3(country_iso)
if hrp is None:
hrp = False
if gho is None:
gho = False
hrp = "Y" if hrp else "N"
gho = "Y" if gho else "N"
country_isos.append(country_iso)
hrps.append(hrp)
ghos.append(gho)
Expand Down
Loading

0 comments on commit 0365e63

Please sign in to comment.