Skip to main content

set_cheater_detection_enabled

Function set_cheater_detection_enabled 

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

Enables or disables suspected-cheater detection for a single course. Used by the seed routine to turn detection off for seeded courses (which are completed in seconds and would otherwise flag every seeded user); production courses keep the on-by-default value set at creation.