(
session: Session, session_id: uuid.UUID, user_id: uuid.UUID
)
| 211 | |
| 212 | |
| 213 | def get_practice_session( |
| 214 | session: Session, session_id: uuid.UUID, user_id: uuid.UUID |
| 215 | ) -> PracticeSession | None: |
| 216 | statement = select(PracticeSession).where( |
| 217 | PracticeSession.id == session_id, PracticeSession.user_id == user_id |
| 218 | ) |
| 219 | return session.exec(statement).first() |
| 220 | |
| 221 | |
| 222 | def _get_uncompleted_session( |
no outgoing calls