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 issue
All checks were successful
continuous-integration/drone/push Build is passing

Forgot to return the row as-is if we don't find any countries.
This commit is contained in:
Alan Orth 2022-08-02 10:17:30 +03:00
parent 032a1db392
commit b9c44aed7d
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -334,7 +334,7 @@ def countries_match_regions(row):
if row[country_column_name] is not None: if row[country_column_name] is not None:
countries = row[country_column_name].split("||") countries = row[country_column_name].split("||")
else: else:
return return row
if row[region_column_name] is not None: if row[region_column_name] is not None:
regions = row[region_column_name].split("||") regions = row[region_column_name].split("||")