From 4a2731604891fc44d7a8e6adbb2819eb9bbc9e34 Mon Sep 17 00:00:00 2001 From: Ion Y Date: Tue, 23 Aug 2022 16:36:06 -0700 Subject: [PATCH] Include '@id's with contests. Fixes BallotLab #86. --- src/electos/ballotmaker/scripts/ballot-lab-data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/electos/ballotmaker/scripts/ballot-lab-data.py b/src/electos/ballotmaker/scripts/ballot-lab-data.py index a3cf618..b1ea29d 100644 --- a/src/electos/ballotmaker/scripts/ballot-lab-data.py +++ b/src/electos/ballotmaker/scripts/ballot-lab-data.py @@ -146,6 +146,7 @@ def extract_candidate_contest(contest: CandidateContest, index): if selection.is_write_in: write_ins += 1 result = { + "id": contest.model__id, "title": contest.name, "type": "candidate", "vote_type": contest.vote_variation.value,