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
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:
parent
032a1db392
commit
b9c44aed7d
@ -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("||")
|
||||||
|
Loading…
Reference in New Issue
Block a user