Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,11 @@ protected function importJudgementType(Event $event, EventData $data): void
// Verdict not found, import it as a custom verdict; assume it has a penalty.
$customVerdicts = $this->config->get('external_judgement_types');
$customVerdicts[$verdict] = str_replace(' ', '-', $data->name);
$this->config->saveChanges(['external_judgement_types' => $customVerdicts], $this->eventLog, $this->dj);
$this->config->saveChanges(
array_merge($this->config->all(), ['external_judgement_types' => $customVerdicts]),
$this->eventLog,
$this->dj
);
$this->verdicts = $this->config->getVerdicts(['final', 'external']);
$penalty = true;
$solved = false;
Expand Down
Loading