Skip to main content

get_user_course_submission_times

Function get_user_course_submission_times 

Source
pub async fn get_user_course_submission_times(
    conn: &mut PgConnection,
    user_id: Uuid,
    course_id: Uuid,
) -> ModelResult<Vec<UserCourseSubmissionTime>>
Expand description

All of a user’s submission times in a course, each tagged with its exercise and module, ordered chronologically. Excludes submissions to soft-deleted exercises/chapters so this per-course timeline agrees with the cross-course density view. Capped to a safe maximum, fetching one past the cap (5001) so the caller can tell a genuine overflow from an exact-cap result.