election_day.utils.notification
Attributes
Classes
Built-in immutable sequence. |
Functions
|
Group elections, compounds and votes by subscribable notification |
Module Contents
- type election_day.utils.notification.DomainSubset = Literal['canton', 'municipality'] | None[source]
- class election_day.utils.notification.ModelGroup[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.notification.segment_models(elections: collections.abc.Sequence[onegov.election_day.models.Election], election_compounds: collections.abc.Sequence[onegov.election_day.models.ElectionCompound], votes: collections.abc.Sequence[onegov.election_day.models.Vote]) list[ModelGroup][source]
Group elections, compounds and votes by subscribable notification segmenation.