|
26 | 26 | use Doctrine\ORM\NonUniqueResultException; |
27 | 27 | use Doctrine\ORM\NoResultException; |
28 | 28 | use Doctrine\ORM\Query\Expr\Join; |
| 29 | +use Knp\Component\Pager\Pagination\PaginationInterface; |
29 | 30 | use Symfony\Component\Form\FormFactoryInterface; |
30 | 31 | use Symfony\Component\HttpFoundation\Request; |
31 | 32 | use Symfony\Component\HttpFoundation\RequestStack; |
@@ -330,7 +331,7 @@ public function viewAction( |
330 | 331 | $verdictTable[$originalVerdict->getResult()][$newVerdict->getResult()][] = $submitid; |
331 | 332 | } |
332 | 333 |
|
333 | | - $viewTypes = [0 => 'newest', 1 => 'unverified', 2 => 'unjudged', 3 => 'diff', 4 => 'all']; |
| 334 | + $viewTypes = [0 => 'unverified', 1 => 'unjudged', 2 => 'diff', 3 => 'all']; |
334 | 335 | $defaultView = 'diff'; |
335 | 336 | $onlyAHandfulOfSubmissions = $rejudging->getSubmissions()->count() <= 5; |
336 | 337 | if ($onlyAHandfulOfSubmissions) { |
@@ -362,10 +363,11 @@ public function viewAction( |
362 | 363 | $restrictions->result = $newverdict; |
363 | 364 | } |
364 | 365 |
|
365 | | - /** @var Submission[] $submissions */ |
| 366 | + /** @var PaginationInterface<int, Submission> $submissions */ |
366 | 367 | [$submissions, $submissionCounts] = $submissionService->getSubmissionList( |
367 | 368 | $this->dj->getCurrentContests(honorCookie: true), |
368 | | - $restrictions |
| 369 | + $restrictions, |
| 370 | + page: $request->query->getInt('page', 1), |
369 | 371 | ); |
370 | 372 |
|
371 | 373 | $repetitions = $this->em->createQueryBuilder() |
|
0 commit comments