Skip to content

Commit 93af8d8

Browse files
committed
Exclude samples for interactive problems.
(cherry picked from commit 0cc0da0)
1 parent ed9f9cf commit 93af8d8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webapp/src/Service/DOMJudgeService.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,10 @@ public function getSamplesZipForContest(Contest $contest): StreamedResponse
881881

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

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

0 commit comments

Comments
 (0)