election_day.models.vote.ballot_result

Classes

BallotResult

The result of a specific ballot. Each ballot may have multiple

Module Contents

class election_day.models.vote.ballot_result.BallotResult[source]

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

The result of a specific ballot. Each ballot may have multiple results. Those results may be aggregated or not.

__tablename__ = 'ballot_results'[source]
id: sqlalchemy.Column[uuid.UUID][source]
entity_id: sqlalchemy.Column[int][source]
name: sqlalchemy.Column[str][source]
district: sqlalchemy.Column[str | None][source]
counted: sqlalchemy.Column[bool][source]
yeas: sqlalchemy.Column[int][source]
nays: sqlalchemy.Column[int][source]
empty: sqlalchemy.Column[int][source]
invalid: sqlalchemy.Column[int][source]
eligible_voters: sqlalchemy.Column[int][source]
expats: sqlalchemy.Column[int | None][source]
ballot_id: sqlalchemy.Column[uuid.UUID][source]
ballot: sqlalchemy.orm.relationship[onegov.election_day.models.Ballot][source]