File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 55use App \Entity \JudgeTask ;
66use App \Entity \Judging ;
77use App \Entity \QueueTask ;
8+ use App \Service \DOMJudgeService ;
89
910trait JudgeRemainingTrait
1011{
@@ -13,13 +14,14 @@ trait JudgeRemainingTrait
1314 */
1415 protected function judgeRemainingJudgings (array $ judgings ): void
1516 {
17+ $ lazyEval = $ this ->config ->get ('lazy_eval_results ' );
1618 $ inProgress = [];
1719 $ alreadyRequested = [];
1820 $ invalidJudgings = [];
1921 $ numRequested = 0 ;
2022 foreach ($ judgings as $ judging ) {
2123 $ judgingId = $ judging ->getJudgingid ();
22- if ($ judging ->getResult () === null ) {
24+ if ($ judging ->getResult () === null && $ lazyEval !== DOMJudgeService:: EVAL_ANALYST ) {
2325 $ inProgress [] = $ judgingId ;
2426 } elseif ($ judging ->getJudgeCompletely ()) {
2527 $ alreadyRequested [] = $ judgingId ;
Original file line number Diff line number Diff line change @@ -583,6 +583,7 @@ public function viewAction(
583583 'version_warnings ' => [],
584584 'isMultiPassProblem ' => $ submission ->getProblem ()->isMultipassProblem (),
585585 'thumbnailSize ' => $ this ->config ->get ('thumbnail_size ' ),
586+ 'isAnalystMode ' => $ this ->config ->get ('lazy_eval_results ' ) === DOMJudgeService::EVAL_ANALYST ,
586587 ];
587588
588589 if ($ selectedJudging === null ) {
Original file line number Diff line number Diff line change 530530 {% if selectedJudging is not null and runsOutstanding %}
531531 {% if selectedJudging .judgeCompletely %}
532532 <i class="fas fa-balance-scale " title="remaining test cases requested to be judged"> </i >
533- {% elseif selectedJudging .result is not null %}
533+ {% elseif selectedJudging .result is not null or isAnalystMode %}
534534 <form action="{{ path(' jury_submission_request_remaining' , {' judgingId' : selectedJudging .judgingid }) }}" method="post"
535535 style="display: inline; ">
536536 <button type="submit" class="btn btn-outline-secondary btn-sm " style="padding: 0.1rem 0.5rem; font-size : 0.7em"> <i class="fa-solid fa-gavel "> </i > judge remaining</button >
You can’t perform that action at this time.
0 commit comments