Skip to content

Commit

Permalink
Filter results by tally
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Nov 8, 2024
1 parent 03118fd commit f8eff20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tally_ho/apps/tally/views/super_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,11 @@ def get(self, *args, **kwargs):
ballot_id = kwargs['ballot_id']
result_form = ResultForm.objects.get(
barcode=barcode, tally_id=tally_id)
results = Result.objects.filter(result_form=result_form.id)
results =\
Result.objects.filter(
result_form=result_form,
result_form__tally__id=tally_id,
)

return self.render_to_response(self.get_context_data(
results_form_duplicates=get_result_form_with_duplicate_results(
Expand Down

0 comments on commit f8eff20

Please sign in to comment.