Skip to content

Commit b8b85af

Browse files
cubercslvmcj
authored andcommitted
scoreboard code cleanup
Submissions per team and problem are moved to separate JSON endpoint in ef70ae8. Signed-off-by: cubercsl <[email protected]>
1 parent bf78085 commit b8b85af

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

webapp/src/Controller/PublicController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,6 @@ public function scoreboardAction(
8686

8787
if ($static) {
8888
$data['hide_menu'] = true;
89-
$submissions = $this->submissionService->getSubmissionList(
90-
[$contest->getCid() => $contest],
91-
new SubmissionRestriction(valid: true),
92-
paginated: false
93-
)[0];
94-
95-
$submissionsPerTeamAndProblem = [];
96-
foreach ($submissions as $submission) {
97-
$submissionsPerTeamAndProblem[$submission->getTeam()->getTeamid()][$submission->getProblem()->getProbid()][] = $submission;
98-
}
99-
$data['submissionsPerTeamAndProblem'] = $submissionsPerTeamAndProblem;
100-
$data['verificationRequired'] = $this->config->get('verification_required');
10189
}
10290

10391
$data['current_contest'] = $contest;

0 commit comments

Comments
 (0)