Tweak ward match to put Clive Bury in the right ward.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user