Skip to content

Commit

Permalink
Add country prefix to place IDs.
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurva committed Aug 15, 2023
1 parent bb9e3f0 commit 43024e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/world_bank/datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,8 @@ def get_observations_from_data_row(data_row, svs, measurement_method):
logging.error('SKIPPED data row, not a country code: %s',
place_dcid)
return []
else:
place_dcid = f"{COUNTRY_DCID_PREFIX}/{place_dcid}"
else:
place_dcid = EARTH_DCID

Expand Down

0 comments on commit 43024e4

Please sign in to comment.