election_day.models.election.election_result

Classes

ElectionResult

The election result in a single political entity.

Module Contents

class election_day.models.election.election_result.ElectionResult[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.TimestampMixin, onegov.election_day.models.election.mixins.DerivedAttributesMixin

The election result in a single political entity.

__tablename__ = 'election_results'[source]
id: Column[uuid.UUID][source]
election_id: Column[str][source]
election: relationship[Election][source]
entity_id: Column[int][source]
name: Column[str][source]
district: Column[str | None][source]
superregion: Column[str | None][source]
counted: Column[bool][source]
eligible_voters: Column[int][source]
expats: Column[int | None][source]
received_ballots: Column[int][source]
blank_ballots: Column[int][source]
invalid_ballots: Column[int][source]
blank_votes: Column[int][source]
invalid_votes: Column[int][source]
accounted_votes: Column[int][source]
list_results: relationship[list[ListResult]][source]
candidate_results: relationship[list[CandidateResult]][source]
candidate_panachage_results: relationship[list[CandidatePanachageResult]][source]