election_day.models.election.proporz_election

Classes

VotesByEntityRow

ProporzElection

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded

Module Contents

class election_day.models.election.proporz_election.VotesByEntityRow[source]

Bases: NamedTuple

election_id: str[source]
entity_id: int[source]
counted: bool[source]
votes: int[source]
class election_day.models.election.proporz_election.ProporzElection[source]

Bases: onegov.election_day.models.election.election.Election, onegov.election_day.models.party_result.mixins.PartyResultsCheckMixin, onegov.election_day.models.party_result.mixins.HistoricalPartyResultsMixin

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).

__mapper_args__[source]
list_connections: relationship[list[ListConnection]][source]
lists: relationship[list[List]][source]
party_results: relationship[list[PartyResult]][source]
party_panachage_results: relationship[list[PartyPanachageResult]][source]
property votes_by_entity: Query[VotesByEntityRow][source]
property votes_by_district: Query[VotesByDistrictRow][source]
property has_lists_panachage_data: bool[source]

Checks if there are lists panachage data available.

property has_candidate_panachage_data: bool[source]

Checks if there are candidate panachage data available.

property relationships_for_historical_party_results: AppenderQuery[ElectionRelationship][source]
clear_results(clear_all: bool = False) None[source]

Clears all the results.