election_day.collections.election_compounds
Classes
Module Contents
- class election_day.collections.election_compounds.ElectionCompoundCollection(session: sqlalchemy.orm.Session, page: int = 0, year: int | None = None)[source]
Bases:
onegov.core.collection.Pagination[onegov.election_day.models.ElectionCompound]- get_latest() list[onegov.election_day.models.ElectionCompound] | None[source]
Returns the election compounds with the latest date.
- by_date(date: ElectionCompoundCollection.by_date.date) list[onegov.election_day.models.ElectionCompound][source]
Returns the election compounds on the given date.