election_day.utils.election_compound.candidates
Classes
Functions
|
Returns the elected candidates of an election compound. |
|
Module Contents
- class election_day.utils.election_compound.candidates.ElectedCandidateRow[source]
Bases:
NamedTuple
- election_day.utils.election_compound.candidates.get_elected_candidates(election_compound: ElectionCompound | ElectionCompoundPart, session: sqlalchemy.orm.Session) Query[ElectedCandidateRow] [source]
Returns the elected candidates of an election compound.
- election_day.utils.election_compound.candidates.get_candidate_statistics(election_compound: ElectionCompound | ElectionCompoundPart, elected_candidates: Iterable[ElectedCandidateRow] | None = None) dict[str, CandidateStatistics] [source]