Skip to content

Commit 031d24a

Browse files
author
Michael Vasseur
committed
Remove dump and debug statements
1 parent 5b9c970 commit 031d24a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

webapp/src/Controller/Jury/UserController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,10 @@ private function serializeJudgeTasks(array $judgeTasks, Judgehost $judgehost): a
200200
}
201201
}
202202
}
203-
dump($judgetaskids);
204203

205204
$now = Utils::now();
206205
// We do need this, but for now it stops us from debugging.
207-
/*$numUpdated = $this->em->getConnection()->executeStatement(
206+
$numUpdated = $this->em->getConnection()->executeStatement(
208207
'UPDATE judgetask SET judgehostid = :judgehostid, starttime = :starttime WHERE starttime IS NULL AND valid = 1 AND judgetaskid IN (:ids)',
209208
[
210209
'judgehostid' => $judgehost->getJudgehostid(),
@@ -216,11 +215,10 @@ private function serializeJudgeTasks(array $judgeTasks, Judgehost $judgehost): a
216215
]
217216
);
218217

219-
dump($numUpdated);
220218
if ($numUpdated == 0) {
221219
// Bad luck, some other judgehost beat us to it.
222220
return [];
223-
}*/
221+
}
224222

225223
// We got at least one, let's update the starttime of the corresponding judging if haven't done so in the past.
226224
$starttime_set = $this->em->getConnection()->executeStatement(

0 commit comments

Comments
 (0)