File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,23 @@ public function createRejudging(
82
82
$ index = 0 ;
83
83
$ first = true ;
84
84
foreach ($ judgings as $ judging ) {
85
+ $ submission = $ judging ->getSubmission ();
86
+ $ contestProblem = $ submission ->getContestProblem ();
87
+ $ language = $ submission ->getLanguage ();
88
+
85
89
$ index ++;
86
- if ($ judging ->getSubmission ()->getRejudging () !== null ) {
87
- // The submission is already part of another rejudging, record and skip it.
90
+ if (
91
+ // Record and skip submission/judging if it is already part of another judging or is not allowed
92
+ // to be judged.
93
+ $ submission ->getRejudging () !== null
94
+ || !$ contestProblem ->getAllowJudge ()
95
+ || !$ language ->getAllowJudge ()
96
+ ) {
88
97
$ skipped [] = $ judging ;
89
98
continue ;
90
99
}
91
100
101
+
92
102
$ this ->em ->wrapInTransaction (function () use (
93
103
$ priority ,
94
104
$ singleJudging ,
You can’t perform that action at this time.
0 commit comments