mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-11-25 15:18:19 +01:00
csv_metadata_quality/fix.py: fix logic error
Fix string concatenation with existing regions.
This commit is contained in:
parent
b9c44aed7d
commit
40c3585bab
@ -363,7 +363,7 @@ def countries_match_regions(row):
|
|||||||
# Add the missing regions back to the row, paying attention to whether
|
# Add the missing regions back to the row, paying attention to whether
|
||||||
# or not the row's regions are blank or not.
|
# or not the row's regions are blank or not.
|
||||||
if row[region_column_name] is not None:
|
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
|
missing_regions
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user