feriennet.collections.match
Attributes
Classes
Built-in immutable sequence. |
|
Module Contents
- class feriennet.collections.match.OccasionByStateRow[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.
- type feriennet.collections.match.OccasionState = Literal['cancelled', 'overfull', 'empty', 'unoperable', 'operable', 'full'][source]
- class feriennet.collections.match.MatchCollection(session: sqlalchemy.orm.Session, period: onegov.activity.models.BookingPeriod | onegov.activity.models.BookingPeriodMeta, states: collections.abc.Collection[OccasionState] | None = None)[source]
-
- for_period(period: onegov.activity.models.BookingPeriod | onegov.activity.models.BookingPeriodMeta) Self[source]
- include_in_output(occasion: OccasionByStateRow) bool[source]
- property occasions: collections.abc.Iterable[OccasionByStateRow][source]