Skip to content

Commit

Permalink
Fix requesting of full judging output. (#2138)
Browse files Browse the repository at this point in the history
Requesting the full judging output is a `debug_info` judge task type
which does not have a run config set.

See #2031 where the code in question was introduced to display
historical time limits.
  • Loading branch information
meisterT authored Sep 2, 2023
1 parent e43b145 commit d14bb7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/Controller/Jury/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ public function viewAction(
->from(JudgeTask::class, 'jt', 'jt.jobid')
->select('jt')
->andWhere('jt.jobid IN (:jobIds)')
->andWhere('jt.type = :type')
->setParameter(
'jobIds',
array_map(static fn(Judging $judging) => $judging->getJudgingid(), $judgings)
)
->setParameter('type', JudgeTaskType::JUDGING_RUN)
->getQuery()
->getResult();
$timelimits = array_map(function (JudgeTask $task) {
Expand Down

0 comments on commit d14bb7b

Please sign in to comment.