Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fief-dev_fief /fief /repositories /registration_session.py
| from sqlalchemy import select | |
| from fief.models import RegistrationSession | |
| from fief.repositories.base import BaseRepository, ExpiresAtMixin, UUIDRepositoryMixin | |
| class RegistrationSessionRepository( | |
| BaseRepository[RegistrationSession], | |
| UUIDRepositoryMixin[RegistrationSession], | |
| ExpiresAtMixin[RegistrationSession], | |
| ): | |
| model = RegistrationSession | |
| async def get_by_token( | |
| self, token: str, *, fresh: bool = True | |
| ) -> RegistrationSession | None: | |
| statement = select(RegistrationSession).where( | |
| RegistrationSession.token == token | |
| ) | |
| if fresh: | |
| statement = statement.where(RegistrationSession.is_expired.is_(False)) | |
| return await self.get_one_or_none(statement) | |
Xet Storage Details
- Size:
- 744 Bytes
- Xet hash:
- 6082b1405b04257520d0aa6c0955aef1c9c9ab8b7ca135127f653ec1db3ca7ae
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.