diff --git a/atcoder-problems-backend/sql-client/src/rated_point_sum.rs b/atcoder-problems-backend/sql-client/src/rated_point_sum.rs index d3db5db7..ee6c19b0 100644 --- a/atcoder-problems-backend/sql-client/src/rated_point_sum.rs +++ b/atcoder-problems-backend/sql-client/src/rated_point_sum.rs @@ -30,7 +30,7 @@ impl RatedPointSumClient for PgPool { WHERE contests.start_epoch_second >= $1 AND contests.rate_change != $2 - AND contest_problem_count.problem_count >= 2 + AND contest_problem_count.problem_count >= 3 ", ) .bind(FIRST_AGC_EPOCH_SECOND) diff --git a/atcoder-problems-backend/sql-client/tests/test_rated_point_sum.rs b/atcoder-problems-backend/sql-client/tests/test_rated_point_sum.rs index 2cd10585..d76bcd6a 100644 --- a/atcoder-problems-backend/sql-client/tests/test_rated_point_sum.rs +++ b/atcoder-problems-backend/sql-client/tests/test_rated_point_sum.rs @@ -45,7 +45,7 @@ async fn setup_contests(pool: &PgPool) { id: SAME_CONTEST_RATED.to_string(), start_epoch_second: FIRST_AGC_EPOCH_SECOND, duration_second: 1000, - title: "Unrated New Contest".to_string(), + title: "Rated New Contest".to_string(), rate_change: "All".to_string(), }, Contest { @@ -129,6 +129,16 @@ async fn setup_contest_problems(pool: &PgPool) { problem_index: "1".to_string(), contest_id: HEURISTIC_CONTEST.to_string(), }, + ContestProblem { + problem_id: "problem7".to_string(), + problem_index: "7".to_string(), + contest_id: RATED_CONTEST.to_string(), + }, + ContestProblem { + problem_id: "problem8".to_string(), + problem_index: "8".to_string(), + contest_id: SAME_CONTEST_RATED.to_string(), + }, ]; for problem in problems {