mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2025-02-28 12:38:45 +01:00
csv_metadata_quality/fix.py: minor logic fix
Minor logic fix in missing regions.
This commit is contained in:
parent
8a2c567d1f
commit
b7a81b8ec7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user