Skip to main content

get_suspected_cheater_info_for_user

Function get_suspected_cheater_info_for_user 

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

Each course where the user has a non-deleted suspected-cheater record, paired with the threshold that flagged them. The threshold is resolved from the triggering module (matching the flagging logic in library/progressing.rs), falling back to the default-module threshold for legacy rows.