Skip to main content

Module course_instance_enrollments

Module course_instance_enrollments 

Source

Structs§

CourseEnrollmentInfo
CourseEnrollmentRow 🔒
CourseEnrollmentsInfo
CourseInstanceEnrollment
CourseInstanceEnrollmentsInfo
CourseModuleInfo
Slim module descriptor so the frontend can label per-module completions and show “X of Y modules” without a separate course-structure fetch. Default (base) module has name = None.
DailySubmissionCount
One UTC day’s exercise-submission count for a module, used for the activity-density violins on the cross-course timeline. day is midnight of the day the submissions fall in.
NewCourseInstanceEnrollment

Functions§

get_by_user_and_course_instance_id
get_by_user_id
get_by_user_id_and_course_ids
get_course_enrollments_info_for_user
Returns one entry per course the user is enrolled in, with aggregated data.
get_course_instance_enrollments_info_for_user
insert
insert_enrollment_and_set_as_current
insert_enrollment_if_it_doesnt_exist
Inserts enrollment if it doesn’t exist yet; on conflict updates deleted_at to NULL (upsert).