Skip to content

Commit

Permalink
Add logic for potential voters
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Nov 4, 2024
1 parent 18be5ff commit 703c9e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tally_ho/libs/verify/quarantine_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,11 @@ def pass_registrants_trigger(result_form):
if registrants is None:
return True

qc = QuarantineCheck.objects.get(method='pass_registrants_trigger')
potential_voters_num = registrants + qc.value

return recon_form.total_of_cancelled_ballots_and_ballots_inside_box <=\
registrants
potential_voters_num

def pass_voter_cards_trigger(result_form):
"""Summation of recon fields number_cancelled_ballots and
Expand Down

0 comments on commit 703c9e0

Please sign in to comment.