Skip to main content

count_submission_uncertain_by_course_id

Function count_submission_uncertain_by_course_id 

Source
pub async fn count_submission_uncertain_by_course_id(
    conn: &mut PgConnection,
    course_id: Uuid,
) -> ModelResult<i64>
Expand description

How many of a course’s live rows a bulk retry has to refuse, all for the one remaining reason: the submission may have landed, so only a human may move that row.

Counts the whole course, not a capped window: these are the rows get_retryable_ids_by_course_id leaves out, and a teacher clicking again will never work through them.