From 031d24a67ef34b6c7927dd87367d9c37772a8c8c Mon Sep 17 00:00:00 2001 From: Michael Vasseur Date: Fri, 18 Oct 2024 21:03:27 +0200 Subject: [PATCH] Remove dump and debug statements --- webapp/src/Controller/Jury/UserController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webapp/src/Controller/Jury/UserController.php b/webapp/src/Controller/Jury/UserController.php index 2295c7ed15..b91c52ddea 100644 --- a/webapp/src/Controller/Jury/UserController.php +++ b/webapp/src/Controller/Jury/UserController.php @@ -200,11 +200,10 @@ private function serializeJudgeTasks(array $judgeTasks, Judgehost $judgehost): a } } } - dump($judgetaskids); $now = Utils::now(); // We do need this, but for now it stops us from debugging. - /*$numUpdated = $this->em->getConnection()->executeStatement( + $numUpdated = $this->em->getConnection()->executeStatement( 'UPDATE judgetask SET judgehostid = :judgehostid, starttime = :starttime WHERE starttime IS NULL AND valid = 1 AND judgetaskid IN (:ids)', [ 'judgehostid' => $judgehost->getJudgehostid(), @@ -216,11 +215,10 @@ private function serializeJudgeTasks(array $judgeTasks, Judgehost $judgehost): a ] ); - dump($numUpdated); if ($numUpdated == 0) { // Bad luck, some other judgehost beat us to it. return []; - }*/ + } // We got at least one, let's update the starttime of the corresponding judging if haven't done so in the past. $starttime_set = $this->em->getConnection()->executeStatement(