@@ -374,7 +374,7 @@ public function testcaseResults(Submission $submission, ?bool $showExternal = fa
374
374
$ externalJudgementId = $ externalJudgement ?->getExtjudgementid();
375
375
$ probId = $ submission ->getProblem ()->getProbid ();
376
376
$ testcases = $ this ->em ->getConnection ()->fetchAllAssociative (
377
- 'SELECT er.result as runresult, t.ranknumber, t.description
377
+ 'SELECT er.result as runresult, t.ranknumber, t.description, t.sample
378
378
FROM testcase t
379
379
LEFT JOIN external_run er ON (er.testcaseid = t.testcaseid
380
380
AND er.extjudgementid = :extjudgementid)
@@ -388,7 +388,7 @@ public function testcaseResults(Submission $submission, ?bool $showExternal = fa
388
388
$ judgingId = $ judging ? $ judging ->getJudgingid () : null ;
389
389
$ probId = $ submission ->getProblem ()->getProbid ();
390
390
$ testcases = $ this ->em ->getConnection ()->fetchAllAssociative (
391
- 'SELECT r.runresult, jh.hostname, jt.valid, t.ranknumber, t.description
391
+ 'SELECT r.runresult, jh.hostname, jt.valid, t.ranknumber, t.description, t.sample
392
392
FROM testcase t
393
393
LEFT JOIN judging_run r ON (r.testcaseid = t.testcaseid
394
394
AND r.judgingid = :judgingid)
@@ -401,7 +401,12 @@ public function testcaseResults(Submission $submission, ?bool $showExternal = fa
401
401
}
402
402
403
403
$ results = '' ;
404
+ $ lastTypeSample = true ;
404
405
foreach ($ testcases as $ key => $ testcase ) {
406
+ if ($ testcase ['sample ' ] != $ lastTypeSample ) {
407
+ $ results .= ' | ' ;
408
+ $ lastTypeSample = $ testcase ['sample ' ];
409
+ }
405
410
$ class = $ submissionDone ? 'secondary ' : 'primary ' ;
406
411
$ text = '? ' ;
407
412
0 commit comments