We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d149ab commit 135302cCopy full SHA for 135302c
1 file changed
spp_area_hdx/models/hdx_cod_source.py
@@ -50,7 +50,7 @@ def _compute_country_iso3(self):
50
"""
51
for record in self:
52
if record.hdx_dataset_id and record.hdx_dataset_id.startswith("cod-ab-"):
53
- record.country_iso3 = record.hdx_dataset_id[7:].upper()
+ record.country_iso3 = record.hdx_dataset_id[len("cod-ab-"):].upper()
54
elif record.country_id:
55
record.country_iso3 = record.country_id.code
56
else:
0 commit comments