Skip to content

Commit

Permalink
Remove dump and debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur committed Oct 18, 2024
1 parent 5b9c970 commit 031d24a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions webapp/src/Controller/Jury/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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(
Expand Down

0 comments on commit 031d24a

Please sign in to comment.