Get the number of sessions that are currently usable.
(self)
| 75 | @computed_field(alias='usableSessionCount') |
| 76 | @property |
| 77 | def usable_session_count(self) -> int: |
| 78 | """Get the number of sessions that are currently usable.""" |
| 79 | return len([session for _, session in self.sessions.items() if session.is_usable]) |
| 80 | |
| 81 | @computed_field(alias='retiredSessionCount') |
| 82 | @property |