Skip to content

Commit

Permalink
Update webapp/src/Service/DOMJudgeService.php
Browse files Browse the repository at this point in the history
Co-authored-by: MCJ Vasseur <[email protected]>
  • Loading branch information
meisterT and vmcj authored Sep 29, 2024
1 parent c2e407d commit a649d5e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions webapp/src/Service/DOMJudgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1434,10 +1434,7 @@ public function getRunConfig(ContestProblem $problem, Submission $submission): s

$passLimit = 1;
if ($problem->getProblem()->isMultipassProblem()) {
$passLimit = 2;
if ($problem->getProblem()->getMultipassLimit() !== null) {
$passLimit = $problem->getProblem()->getMultipassLimit();
}
$passLimit = $problem->getProblem()->getMultipassLimit() ?? 2;
}

return $this->jsonEncode(
Expand Down

0 comments on commit a649d5e

Please sign in to comment.