From ccae561fda25f137225c8f820013e4f97685e084 Mon Sep 17 00:00:00 2001 From: Kim Taylor Date: Wed, 25 Sep 2024 22:21:37 +1000 Subject: [PATCH] Tweak ward match to put Clive Bury in the right ward. --- csv-generic/parse_generic_csv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv-generic/parse_generic_csv.php b/csv-generic/parse_generic_csv.php index 0e211fb..6d56511 100644 --- a/csv-generic/parse_generic_csv.php +++ b/csv-generic/parse_generic_csv.php @@ -76,7 +76,7 @@ function match_lga(&$candidate_data, $lga_list) { $max_score = 0; foreach ($match_lga['wardNames'] as $ward) { similar_text($ward, $candidate['Ward'], $score); - if ($score > $max_score) { + if ($score >= $max_score) { $max_score = $score; $match_ward = $ward; }