ro_row = row['reporting_org#en']
if ro_row not in reporting_orgs:
ro_row_ref = get_groups_or_none(re.match(r"(.*) \[(.*)\]",
ro_row), 1)
Currently iati_flattener provides a column with content such as African Development Bank [XM-DAC-46002] which has to be split by regex.
From @markbrough:
"It would probably be useful if iati-flattener would add a column reporting_org_ref which would e.g. just contain XM-DAC-46002 rather than African Development Bank [XM-DAC-46002] - I would imagine this line adds some unnecessary overhead."
See: https://github.com/iati-data-access/data-backend/blob/main/iatidatacube/import_data.py#L273
Currently
iati_flattener
provides a column with content such asAfrican Development Bank [XM-DAC-46002]
which has to be split by regex.From @markbrough: "It would probably be useful if
iati-flattener
would add a columnreporting_org_ref
which would e.g. just containXM-DAC-46002
rather thanAfrican Development Bank [XM-DAC-46002]
- I would imagine this line adds some unnecessary overhead."