Skip to content

Commit

Permalink
Filter by form state equal to archived
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnMwashuma committed Nov 7, 2024
1 parent 1d4b373 commit c906d0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def get_total_valid_votes_per_electrol_race(
active=True,
result_form__ballot__electrol_race__id=electral_race_id,
entry_version=EntryVersion.FINAL,
result_form__form_state=FormState.ARCHIVED,
).values('result_form__ballot__electrol_race__id').aggregate(
total_valid_votes=Sum('votes'),
).get('total_valid_votes')
Expand Down

0 comments on commit c906d0b

Please sign in to comment.