Skip to content

Commit de746eb

Browse files
author
Michael Vasseur
committed
Cleanup unrelated testing
1 parent eca9e35 commit de746eb

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

webapp/src/Controller/API/JudgehostController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,8 @@ public function addVisualization(
592592
if ($tempFilename = tempnam($this->dj->getDomjudgeTmpDir(), "visual-")) {
593593
$debug_package = base64_decode($request->request->get('visual_output'));
594594
file_put_contents($tempFilename, $debug_package);
595-
var_dump($debug_package);
596595
}
597596
// FIXME: error checking
598-
var_dump("Received", $request->request->get('testcase_id'), "Processed" );
599597
$testcase = $this->em->getRepository(Testcase::class)->findOneBy(['testcaseid' => $request->request->get('testcase_id')]);
600598
$visualization = new Visualization();
601599
$visualization

webapp/src/Controller/Jury/SubmissionController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,9 +1435,7 @@ public function visualAction(
14351435
?string $visualId = null,
14361436
): StreamedResponse {
14371437

1438-
dump($visualId);
14391438
$visualization = $this->em->getRepository(Visualization::class)->findOneBy(['visualization_id' => $visualId]);
1440-
dump($visualization, $visualId);
14411439
$name = 'visual.j' . $visualization->getJudging()->getJudgingid()
14421440
. '.png';
14431441
return Utils::streamAsBinaryFile(file_get_contents($visualization->getFilename()), $name);

webapp/src/Controller/Jury/UserController.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -167,33 +167,6 @@ public function indexAction(): Response
167167
];
168168
}
169169

170-
$hostname = 'Computer';
171-
$judgehost = $this->em->getRepository(Judgehost::class)->findOneBy(['hostname' => $hostname]);
172-
173-
// If there is nothing else, get visualization jobs that are assigned to this host.
174-
/** @var JudgeTask[] $judgetasks */
175-
$judgetasks = $this->em
176-
->createQueryBuilder()
177-
->from(JudgeTask::class, 'jt')
178-
->select('jt')
179-
->andWhere('jt.judgehost = :judgehost OR jt.judgehost IS NULL')
180-
//->andWhere('jt.starttime IS NULL')
181-
->andWhere('jt.valid = 1')
182-
->andWhere('jt.type = :type')
183-
->setParameter('judgehost', $judgehost)
184-
->setParameter('type', JudgeTaskType::OUTPUT_VISUALIZATION)
185-
->addOrderBy('jt.priority')
186-
->addOrderBy('jt.judgetaskid')
187-
->setMaxResults(1)
188-
->getQuery()
189-
->getResult();
190-
dump($judgetasks);
191-
if (!empty($judgetasks)) {
192-
dump($this->serializeJudgeTasks($judgetasks, $judgehost));
193-
}
194-
195-
dump($testcase = $this->em->getRepository(Testcase::class)->findOneBy(['testcaseid' => '6']));
196-
197170
return $this->render('jury/users.html.twig', [
198171
'users' => $users_table,
199172
'table_fields' => $table_fields,

0 commit comments

Comments
 (0)