1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2025-04-03 21:52:31 +02:00

Revert "csv_metadata_quality/fix.py: minor logic fix"

This reverts commit b7a81b8ec73a97076a473b0cfd21bddb18af9706.
This commit is contained in:
Alan Orth 2025-03-19 16:04:12 +03:00
parent b7a81b8ec7
commit 188097abe4
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -389,7 +389,7 @@ def countries_match_regions(row, exclude):
# string (length would be 0). # string (length would be 0).
if row[region_column_name] is not None and len(row[region_column_name]) > 0: if row[region_column_name] is not None and len(row[region_column_name]) > 0:
row[region_column_name] = ( row[region_column_name] = (
row[region_column_name] + "||".join(missing_regions) row[region_column_name] + "||" + "||".join(missing_regions)
) )
else: else:
row[region_column_name] = "||".join(missing_regions) row[region_column_name] = "||".join(missing_regions)