diff --git a/webapp/src/Service/StatisticsService.php b/webapp/src/Service/StatisticsService.php index e54ca4008d..9e09d1401a 100644 --- a/webapp/src/Service/StatisticsService.php +++ b/webapp/src/Service/StatisticsService.php @@ -355,8 +355,14 @@ public function getProblemStats( $results) ? ($results['correct'] / count($judgings)) * 100.0 : 0; $misc['teams_correct_percentage'] = count($teamsAttempted) > 0 ? (count($teamsCorrect) / count($teamsAttempted)) * 100.0 : 0; + $contestProblem = $this->em->getRepository(ContestProblem::class)->findOneBy([ + 'contest' => $contest, + 'problem' => $problem, + ]); + return [ 'contest' => $contest, + 'contest_problem' => $contestProblem, 'problem' => $problem, 'timelimit' => $problem->getTimelimit(), 'submissions' => $submissions, diff --git a/webapp/templates/jury/analysis/contest_overview.html.twig b/webapp/templates/jury/analysis/contest_overview.html.twig index 8f0aad49b6..bfe2fe8ac4 100644 --- a/webapp/templates/jury/analysis/contest_overview.html.twig +++ b/webapp/templates/jury/analysis/contest_overview.html.twig @@ -138,7 +138,7 @@ $(function() { {% set id=p.probid %}