File tree Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Expand file tree Collapse file tree 4 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1083,7 +1083,7 @@ private function addSingleJudgingRun(
1083
1083
throw new BadMethodCallException ('internal bug: the evaluated result changed during judging ' );
1084
1084
}
1085
1085
1086
- if ($ $ lazyEval === DOMJudgeService::EVAL_ANALYST ) {
1086
+ if ($ lazyEval === DOMJudgeService::EVAL_ANALYST ) {
1087
1087
// Explicitly do not update priorities or cancel activated tasks.
1088
1088
} elseif ($ lazyEval !== DOMJudgeService::EVAL_FULL ) {
1089
1089
// We don't want to continue on this problem, even if there's spare resources.
Original file line number Diff line number Diff line change 5
5
use App \Entity \JudgeTask ;
6
6
use App \Entity \Judging ;
7
7
use App \Entity \QueueTask ;
8
+ use App \Service \DOMJudgeService ;
8
9
9
10
trait JudgeRemainingTrait
10
11
{
@@ -13,13 +14,14 @@ trait JudgeRemainingTrait
13
14
*/
14
15
protected function judgeRemainingJudgings (array $ judgings ): void
15
16
{
17
+ $ lazyEval = $ this ->config ->get ('lazy_eval_results ' );
16
18
$ inProgress = [];
17
19
$ alreadyRequested = [];
18
20
$ invalidJudgings = [];
19
21
$ numRequested = 0 ;
20
22
foreach ($ judgings as $ judging ) {
21
23
$ judgingId = $ judging ->getJudgingid ();
22
- if ($ judging ->getResult () === null ) {
24
+ if ($ judging ->getResult () === null && $ lazyEval !== DOMJudgeService:: EVAL_ANALYST ) {
23
25
$ inProgress [] = $ judgingId ;
24
26
} elseif ($ judging ->getJudgeCompletely ()) {
25
27
$ alreadyRequested [] = $ judgingId ;
Original file line number Diff line number Diff line change @@ -583,6 +583,7 @@ public function viewAction(
583
583
'version_warnings ' => [],
584
584
'isMultiPassProblem ' => $ submission ->getProblem ()->isMultipassProblem (),
585
585
'thumbnailSize ' => $ this ->config ->get ('thumbnail_size ' ),
586
+ 'isAnalystMode ' => $ this ->config ->get ('lazy_eval_results ' ) === DOMJudgeService::EVAL_ANALYST ,
586
587
];
587
588
588
589
if ($ selectedJudging === null ) {
Original file line number Diff line number Diff line change 541
541
{% if selectedJudging is not null and runsOutstanding %}
542
542
{% if selectedJudging .judgeCompletely %}
543
543
<i class="fas fa-balance-scale " title="remaining test cases requested to be judged"> </i >
544
- {% elseif selectedJudging .result is not null %}
544
+ {% elseif selectedJudging .result is not null or isAnalystMode %}
545
545
<form action="{{ path(' jury_submission_request_remaining' , {' judgingId' : selectedJudging .judgingid }) }}" method="post"
546
546
style="display: inline; ">
547
547
<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