Skip to content

Commit 2a3e6b3

Browse files
vmcjnickygerritsen
authored andcommitted
Disable short-name check against PC2
Here we are not in line with the spec.
1 parent 7738ffc commit 2a3e6b3

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
@@ -1028,13 +1028,15 @@ protected function validateAndUpdateProblem(Event $event, EventData $data): void
10281028
'timelimit' => $data->timeLimit,
10291029
];
10301030

1031+
/* Disable as PC2 can have 2 problems with the same label
10311032
if ($contestProblem->getShortname() !== $data->label) {
1033+
if ($contestProblem->getShortname() !== $data['label']) {
10321034
$this->logger->warning(
10331035
'Contest problem short name does not match between feed (%s) and local (%s), updating',
10341036
[$data->label, $contestProblem->getShortname()]
10351037
);
10361038
$contestProblem->setShortname($data->label);
1037-
}
1039+
} */
10381040
if ($contestProblem->getColor() !== ($data->rgb)) {
10391041
$this->logger->warning(
10401042
'Contest problem color does not match between feed (%s) and local (%s), updating',

0 commit comments

Comments
 (0)