List all practice sessions for the current user
(
session: SessionDep,
current_user: CurrentUser,
skip: int = 0,
limit: int = 100,
)
| 245 | |
| 246 | @router.get("/practice-sessions", response_model=PracticeSessionList) |
| 247 | def list_practice_sessions( |
| 248 | session: SessionDep, |
| 249 | current_user: CurrentUser, |
| 250 | skip: int = 0, |
| 251 | limit: int = 100, |
| 252 | ) -> Any: |
| 253 | """List all practice sessions for the current user""" |
| 254 | practice_sessions, count = services.get_practice_sessions( |
| 255 | session=session, |
| 256 | user_id=current_user.id, |
| 257 | skip=skip, |
| 258 | limit=limit, |
| 259 | ) |
| 260 | return PracticeSessionList(data=practice_sessions, count=count) |
| 261 | |
| 262 | |
| 263 | @router.get("/practice-sessions/{practice_session_id}", response_model=PracticeSession) |
nothing calls this directly
no test coverage detected