From 93af8d81bf1e87bfe6c4aeafbde036bd071213f0 Mon Sep 17 00:00:00 2001 From: Tobias Werth Date: Tue, 17 Sep 2024 16:21:28 +0500 Subject: [PATCH] Exclude samples for interactive problems. (cherry picked from commit 0cc0da082f9d96a0cc653755d4e22fb837a3c84d) --- webapp/src/Service/DOMJudgeService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/src/Service/DOMJudgeService.php b/webapp/src/Service/DOMJudgeService.php index 5731d70d64..006cbc219b 100644 --- a/webapp/src/Service/DOMJudgeService.php +++ b/webapp/src/Service/DOMJudgeService.php @@ -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());