mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-24 18:08:41 +00:00
feat(contest): after_contest_standings for acm contests
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
2e419036df
commit
3ffa996631
@ -226,6 +226,20 @@ function queryACMContestSubmissionData($contest, $problems, $prob_pos, $config =
|
|||||||
])
|
])
|
||||||
], "order by id"
|
], "order by id"
|
||||||
], DB::NUM);
|
], DB::NUM);
|
||||||
|
} elseif ($config['after_contest']) {
|
||||||
|
$res = DB::selectAll([
|
||||||
|
"select id, submit_time, submitter, problem_id, score, null, null from submissions",
|
||||||
|
"where", [
|
||||||
|
["problem_id", "in", DB::rawtuple($problems)],
|
||||||
|
["submitter", "in", DB::rawbracket([
|
||||||
|
"select username from contests_registrants",
|
||||||
|
"where", [
|
||||||
|
"contest_id" => $contest['id'],
|
||||||
|
"has_participated" => 1,
|
||||||
|
],
|
||||||
|
])],
|
||||||
|
], "order by score",
|
||||||
|
], DB::NUM);
|
||||||
} else {
|
} else {
|
||||||
$esc_start_time_str = DB::escape($contest['start_time_str']);
|
$esc_start_time_str = DB::escape($contest['start_time_str']);
|
||||||
$res = DB::selectAll([
|
$res = DB::selectAll([
|
||||||
|
Loading…
Reference in New Issue
Block a user