election_day.utils.election_compound.candidates
Classes
Built-in immutable sequence. |
Functions
|
Returns the elected candidates of an election compound. |
|
Module Contents
- class election_day.utils.election_compound.candidates.ElectedCandidateRow[source]
Bases:
NamedTupleBuilt-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- election_day.utils.election_compound.candidates.get_elected_candidates(election_compound: onegov.election_day.models.ElectionCompound | onegov.election_day.models.ElectionCompoundPart, session: sqlalchemy.orm.Session) sqlalchemy.orm.Query[ElectedCandidateRow][source]
Returns the elected candidates of an election compound.
- election_day.utils.election_compound.candidates.get_candidate_statistics(election_compound: onegov.election_day.models.ElectionCompound | onegov.election_day.models.ElectionCompoundPart, elected_candidates: collections.abc.Iterable[ElectedCandidateRow] | None = None) dict[str, CandidateStatistics][source]