From fed13e2876bdc01d8393f127301952228c57c692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Robles?= Date: Fri, 26 Apr 2024 12:28:19 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Download=20election=20turnout=20(#3?= =?UTF-8?q?44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Parent issue: https://github.com/sequentech/meta/issues/209 --- iam/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iam/api/views.py b/iam/api/views.py index d1cefaae..3055b15d 100644 --- a/iam/api/views.py +++ b/iam/api/views.py @@ -2363,7 +2363,7 @@ def get(self, request, pk): ids.extend(ae.children_election_info['natural_order']) for id in ids: - id_ae = get_object_or_404(AuthEvent, pk=pk) + id_ae = get_object_or_404(AuthEvent, pk=id) data[id] = { 'users': id_ae.len_census(), 'total_votes': id_ae.get_num_votes(),