pub async fn count_pending_candidates(
db: &SqlitePool,
repo: Option<&str>,
) -> Result<u64>Expand description
Count pending candidates, optionally filtered to a repo. Cheaper than
list_candidates(...).len() when the caller only needs the total
(e.g. the “+N more — --limit 0 to see all” hint in candidates list).