1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-11-24 23:00:17 +01:00

csv_metadata_quality/fix.py: fix logic error

Fix string concatenation with existing regions.
This commit is contained in:
Alan Orth 2022-08-03 18:26:08 +03:00
parent b9c44aed7d
commit 40c3585bab
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -363,7 +363,7 @@ def countries_match_regions(row):
# Add the missing regions back to the row, paying attention to whether
# or not the row's regions are blank or not.
if row[region_column_name] is not None:
row[region_column_name] = row[region_column_name] + "||".join(
row[region_column_name] = row[region_column_name] + "||" + "||".join(
missing_regions
)
else: