MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / list_practice_sessions

Function list_practice_sessions

backend/src/flashcards/api.py:247–260  ·  view source on GitHub ↗

List all practice sessions for the current user

(
    session: SessionDep,
    current_user: CurrentUser,
    skip: int = 0,
    limit: int = 100,
)

Source from the content-addressed store, hash-verified

245
246@router.get("/practice-sessions", response_model=PracticeSessionList)
247def 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)

Callers

nothing calls this directly

Calls 1

PracticeSessionListClass · 0.85

Tested by

no test coverage detected