Fix scoring for generic survey candidates.
This commit is contained in:
@@ -42,7 +42,7 @@ match_lga($candidate_data, $lga_list);
|
|||||||
foreach ($candidate_data as &$candidate) {
|
foreach ($candidate_data as &$candidate) {
|
||||||
$score = 0;
|
$score = 0;
|
||||||
|
|
||||||
if ($candidate['Pledge'] === "Yes") $score++;
|
if ($candidate['Pledge'] === "y") $score++;
|
||||||
if ($candidate['q1'] === "Yes") $score++;
|
if ($candidate['q1'] === "Yes") $score++;
|
||||||
if ($candidate['q3'] === "Yes") $score++;
|
if ($candidate['q3'] === "Yes") $score++;
|
||||||
if ($candidate['q4'] === "Yes") $score++;
|
if ($candidate['q4'] === "Yes") $score++;
|
||||||
|
|||||||
Reference in New Issue
Block a user