File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -400,12 +400,17 @@ protected function submissionVerdict(
400400 if ($ contest ->getFreezetime () && $ submission ->getSubmittime () >= $ contest ->getFreezetime () && !$ contest ->getFreezeData ()->showFinal ()) {
401401 return $ this ->twigExtension ->printResult ('' );
402402 }
403- if (!$ submission ->getJudgings ()->first () || !$ submission ->getJudgings ()->first ()->getResult ()) {
403+ if ($ this ->dj ->shadowMode ()) {
404+ $ judgings = $ submission ->getExternalJudgements ();
405+ } else {
406+ $ judgings = $ submission ->getJudgings ();
407+ }
408+ if (!$ judgings ->first () || !$ judgings ->first ()->getResult ()) {
404409 return $ this ->twigExtension ->printResult ('' );
405410 }
406- if ($ verificationRequired && !$ submission -> getJudgings () ->first ()->getVerified ()) {
411+ if ($ verificationRequired && !$ judgings ->first ()->getVerified ()) {
407412 return $ this ->twigExtension ->printResult ('' );
408413 }
409- return $ this ->twigExtension ->printResult ($ submission -> getJudgings () ->first ()->getResult (), onlyRejectedForIncorrect: true );
414+ return $ this ->twigExtension ->printResult ($ judgings ->first ()->getResult (), onlyRejectedForIncorrect: true );
410415 }
411416}
You can’t perform that action at this time.
0 commit comments