Skip to content

Commit

Permalink
Merge pull request #1439 from kenkoooo/fix/1429
Browse files Browse the repository at this point in the history
fix: algo-rated always has >=3 problems
  • Loading branch information
kenkoooo committed Oct 15, 2023
2 parents dc92d7b + b933a54 commit a6bdfad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion atcoder-problems-backend/sql-client/src/rated_point_sum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a6bdfad

Please sign in to comment.