From 40c3585bab658343b8479196ea88cf5d72a4bbed Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 3 Aug 2022 18:26:08 +0300 Subject: [PATCH] csv_metadata_quality/fix.py: fix logic error Fix string concatenation with existing regions. --- csv_metadata_quality/fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_metadata_quality/fix.py b/csv_metadata_quality/fix.py index 46a3d9e..04b4cab 100755 --- a/csv_metadata_quality/fix.py +++ b/csv_metadata_quality/fix.py @@ -363,7 +363,7 @@ def countries_match_regions(row): # Add the missing regions back to the row, paying attention to whether # or not the row's regions are blank or not. if row[region_column_name] is not None: - row[region_column_name] = row[region_column_name] + "||".join( + row[region_column_name] = row[region_column_name] + "||" + "||".join( missing_regions ) else: