From e8e338aeefc5e488e17e238175a745b0dd584050 Mon Sep 17 00:00:00 2001 From: Matt Way Date: Tue, 17 Sep 2024 19:13:37 +1000 Subject: [PATCH] Don't include candidates who have not been given a score --- csv-normaliser/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csv-normaliser/main.php b/csv-normaliser/main.php index 84da4fb..fefcc0b 100644 --- a/csv-normaliser/main.php +++ b/csv-normaliser/main.php @@ -117,7 +117,8 @@ if (($handle = fopen($inputFile, "r")) !== FALSE) { $rating = $data[2]; if ($rating == "score" || $rating == "") { - $rating = 0; + // Don't include candidates who haven't been given a score + continue; } $rating = (int)$rating;