Skip to content

Commit 701a08d

Browse files
Fall back to external ID when exporting results
1 parent 79fd3d3 commit 701a08d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/src/Service/ImportExportService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public function getResultsData(
612612
// Teams with 0 points won't get a medal, a rank or an honor.
613613
// They will always get an honorable mention.
614614
$data[] = new ResultRow(
615-
$teamScore->team->getIcpcId(),
615+
$teamScore->team->getIcpcId() ?? $teamScore->team->getExternalid(),
616616
null,
617617
'Honorable',
618618
$teamScore->numPoints,
@@ -667,7 +667,7 @@ public function getResultsData(
667667
}
668668

669669
$data[] = new ResultRow(
670-
$teamScore->team->getIcpcId(),
670+
$teamScore->team->getIcpcId() ?? $teamScore->team->getExternalid(),
671671
$rank,
672672
$awardString,
673673
$teamScore->numPoints,

0 commit comments

Comments
 (0)