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: Column[uuid.UUID][source]
entity_id: Column[int][source]
name: Column[str][source]
district: Column[str | None][source]
counted: Column[bool][source]
yeas: Column[int][source]
nays: Column[int][source]
empty: Column[int][source]
invalid: Column[int][source]
eligible_voters: Column[int][source]
expats: Column[int | None][source]
ballot_id: Column[uuid.UUID][source]
ballot: relationship[Ballot][source]