pub async fn count_modules_failing_config_check(
conn: &mut PgConnection,
) -> ModelResult<i64>Expand description
Enabled modules the last check found broken. A module nothing has checked yet is not counted: unknown is not a failure.
Counts the stored message, not the boolean, so the tab badge matches the Courses tab’s own
“misconfigured” tile. The boolean covers only the course code, while check_module_config
also reports missing credits, a missing enrolment link and a double-enabled registration path.