Skip to content

Commit

Permalink
Do not send a judging update event for judgements that aren't valid (…
Browse files Browse the repository at this point in the history
…yet).

Fixes #2370.
  • Loading branch information
Nicky Gerritsen committed Mar 17, 2024
1 parent 9716802 commit ae9a946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Controller/API/JudgehostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ private function addSingleJudgingRun(
}

// Send an event for an endtime (and max runtime update).
if ($sendJudgingEvent) {
if ($sendJudgingEvent && $judging->getValid()) {
$this->eventLogService->log('judging', $judging->getJudgingid(),
EventLogService::ACTION_UPDATE, $judging->getContest()->getCid());
}
Expand Down

0 comments on commit ae9a946

Please sign in to comment.