election_day.models.vote.complex_vote

Classes

ComplexVote

A complex vote with proposal, counter-proposal and tie-breaker.

Module Contents

class election_day.models.vote.complex_vote.ComplexVote[source]

Bases: onegov.election_day.models.vote.vote.Vote

A complex vote with proposal, counter-proposal and tie-breaker.

__mapper_args__[source]
property counter_proposal: onegov.election_day.models.Ballot[source]
property tie_breaker: onegov.election_day.models.Ballot[source]
static get_answer(counted: bool, proposal: Ballot | BallotResult | None, counter_proposal: Ballot | BallotResult | None, tie_breaker: Ballot | BallotResult | None) str | None[source]
property answer: str | None[source]
property yeas_percentage: float[source]

The percentage of yeas (discounts empty/invalid ballots).

If the proposal won or both proposal and counter-proposal were rejected, we show the yeas/nays of the proposal.