1
0
mirror of https://github.com/ilri/csv-metadata-quality.git synced 2024-12-22 04:02:19 +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:
countries = row[country_column_name].split("||")
else:
return
return row
if row[region_column_name] is not None:
regions = row[region_column_name].split("||")