Fix scoring for generic survey candidates.

This commit is contained in:
Kim Taylor
2024-09-24 15:26:32 +10:00
parent 8b2e66b044
commit 68938751d4

View File

@@ -42,7 +42,7 @@ match_lga($candidate_data, $lga_list);
foreach ($candidate_data as &$candidate) {
$score = 0;
if ($candidate['Pledge'] === "Yes") $score++;
if ($candidate['Pledge'] === "y") $score++;
if ($candidate['q1'] === "Yes") $score++;
if ($candidate['q3'] === "Yes") $score++;
if ($candidate['q4'] === "Yes") $score++;