Skip to content

Commit

Permalink
Exclude samples for interactive problems.
Browse files Browse the repository at this point in the history
(cherry picked from commit 0cc0da0)
  • Loading branch information
meisterT committed Sep 28, 2024
1 parent ed9f9cf commit 93af8d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion webapp/src/Service/DOMJudgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,10 @@ public function getSamplesZipForContest(Contest $contest): StreamedResponse

/** @var ContestProblem $problem */
foreach ($contest->getProblems() as $problem) {
$this->addSamplesToZip($zip, $problem, $problem->getShortname());
// We don't include the samples for interactive problems.
if (!$problem->getProblem()->getCombinedRunCompare()) {
$this->addSamplesToZip($zip, $problem, $problem->getShortname());
}

if ($problem->getProblem()->getProblemstatementType()) {
$filename = sprintf('%s/statement.%s', $problem->getShortname(), $problem->getProblem()->getProblemstatementType());
Expand Down

0 comments on commit 93af8d8

Please sign in to comment.