Skip to content

Commit adccd5a

Browse files
committed
Cleanup as we can use the new function
1 parent 2210cf5 commit adccd5a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

webapp/src/Controller/Jury/SubmissionController.php

+1-8
Original file line numberDiff line numberDiff line change
@@ -494,14 +494,7 @@ public function viewAction(
494494
->getSingleScalarResult();
495495
}
496496

497-
$evalOnDemand = false;
498-
$problemLazyEvalResults = $submission->getContestProblem()->getLazyEvalResults();
499-
if (((int)$problemLazyEvalResults === (int)DOMJudgeService::EVAL_DEFAULT
500-
&& (int)$this->config->get('lazy_eval_results') === (int)DOMJudgeService::EVAL_DEMAND)
501-
|| (int)$problemLazyEvalResults === (int)DOMJudgeService::EVAL_DEMAND
502-
) {
503-
$evalOnDemand = true;
504-
}
497+
$evalOnDemand = $submission->getContestProblem()->determineOnDemand($this->config->get('lazy_eval_results'));
505498

506499
$twigData = [
507500
'submission' => $submission,

0 commit comments

Comments
 (0)