Tweak ward match to put Clive Bury in the right ward.

This commit is contained in:
Kim Taylor
2024-09-25 22:21:37 +10:00
parent 34e0297947
commit ccae561fda

View File

@@ -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;
}