MCPcopy
hub / github.com/learnhouse/learnhouse / api_admin_get_user_progress

Function api_admin_get_user_progress

apps/api/src/routers/admin.py:556–566  ·  view source on GitHub ↗
(
    org_slug: str,
    user_id: int,
    course_uuid: str,
    current_user=Depends(get_current_user),
    db_session: AsyncSession = Depends(get_db_session),
)

Source from the content-addressed store, hash-verified

554 },
555)
556async def api_admin_get_user_progress(
557 org_slug: str,
558 user_id: int,
559 course_uuid: str,
560 current_user=Depends(get_current_user),
561 db_session: AsyncSession = Depends(get_db_session),
562) -> ProgressResponse:
563 token_user = _require_api_token(current_user)
564 await _resolve_org_slug(org_slug, token_user, db_session)
565 result = await get_user_progress(token_user, user_id, course_uuid, db_session)
566 return ProgressResponse(**result)
567
568
569@router.post(

Callers

nothing calls this directly

Calls 4

_require_api_tokenFunction · 0.90
_resolve_org_slugFunction · 0.90
get_user_progressFunction · 0.90
ProgressResponseClass · 0.85

Tested by

no test coverage detected