Skip to content

Commit 5a9c75e

Browse files
committed
Disable short-name check against PC2
Here we are not in line with the spec.
1 parent 16624b0 commit 5a9c75e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,13 +1035,15 @@ protected function validateAndUpdateProblem(Event $event, EventData $data): void
10351035
'timelimit' => $data->timeLimit,
10361036
];
10371037

1038+
/* Disable as PC2 can have 2 problems with the same label
10381039
if ($contestProblem->getShortname() !== $data->label) {
1040+
if ($contestProblem->getShortname() !== $data['label']) {
10391041
$this->logger->warning(
10401042
'Contest problem short name does not match between feed (%s) and local (%s), updating',
10411043
[$data->label, $contestProblem->getShortname()]
10421044
);
10431045
$contestProblem->setShortname($data->label);
1044-
}
1046+
} */
10451047
if ($contestProblem->getColor() !== ($data->rgb)) {
10461048
$this->logger->warning(
10471049
'Contest problem color does not match between feed (%s) and local (%s), updating',

0 commit comments

Comments
 (0)