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: sqlalchemy.Column[uuid.UUID][source]
election_id: sqlalchemy.Column[str][source]
election: sqlalchemy.orm.relationship[onegov.election_day.models.Election][source]
entity_id: sqlalchemy.Column[int][source]
name: sqlalchemy.Column[str][source]
district: sqlalchemy.Column[str | None][source]
superregion: sqlalchemy.Column[str | None][source]
counted: sqlalchemy.Column[bool][source]
eligible_voters: sqlalchemy.Column[int][source]
expats: sqlalchemy.Column[int | None][source]
received_ballots: sqlalchemy.Column[int][source]
blank_ballots: sqlalchemy.Column[int][source]
invalid_ballots: sqlalchemy.Column[int][source]
blank_votes: sqlalchemy.Column[int][source]
invalid_votes: sqlalchemy.Column[int][source]
accounted_votes: sqlalchemy.Column[int][source]
list_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.ListResult]][source]
candidate_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.CandidateResult]][source]
candidate_panachage_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.CandidatePanachageResult]][source]