Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff 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 numberDiff line numberDiff 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 DownExpand 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