From 1f80ec41db957875aef607d372501109b1442ef5 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Fri, 20 Sep 2024 22:59:51 +1000 Subject: [PATCH] Fix skipping candidates with whitespace around the word "Candidate" in the first column --- csv-normaliser/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv-normaliser/main.php b/csv-normaliser/main.php index 6a43997..68ed719 100644 --- a/csv-normaliser/main.php +++ b/csv-normaliser/main.php @@ -78,7 +78,7 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) { $currentWard = "Coastal-Promontory"; } } - if ($data[0] == "Candidate" || trim($data[0]) == "") { + if (trim($data[0]) == "Candidate" || trim($data[0]) == "") { if ($currentWard == null) { error_log("No ward found, skipping data on line " . $currentLine); continue;