@@ -926,21 +926,7 @@ public function requestRemainingRunsWholeContestAction(int $contestId): Redirect
926
926
if (!$ contest ) {
927
927
throw new NotFoundHttpException (sprintf ('Contest with ID %s not found ' , $ contestId ));
928
928
}
929
- $ judgings = $ this ->em ->createQueryBuilder ()
930
- ->from (Judging::class, 'j ' )
931
- ->select ('j ' )
932
- ->join ('j.submission ' , 's ' )
933
- ->join ('s.team ' , 't ' )
934
- ->join ('t.category ' , 'tc ' )
935
- ->andWhere ('tc.visible = true ' )
936
- ->andWhere ('j.valid = true ' )
937
- ->andWhere ('j.result != :compiler_error ' )
938
- ->andWhere ('s.contest = :contestId ' )
939
- ->setParameter ('compiler_error ' , 'compiler-error ' )
940
- ->setParameter ('contestId ' , $ contestId )
941
- ->getQuery ()
942
- ->getResult ();
943
- $ this ->judgeRemaining ($ judgings );
929
+ $ this ->judgeRemaining (contestId: $ contestId );
944
930
return $ this ->redirectToRoute ('jury_contest ' , ['contestId ' => $ contestId ]);
945
931
}
946
932
@@ -958,21 +944,7 @@ public function requestRemainingRunsContestProblemAction(int $contestId, int $pr
958
944
);
959
945
}
960
946
961
- $ judgings = $ this ->em ->createQueryBuilder ()
962
- ->from (Judging::class, 'j ' )
963
- ->select ('j ' )
964
- ->join ('j.submission ' , 's ' )
965
- ->join ('s.team ' , 't ' )
966
- ->andWhere ('s.problem = :problemId ' )
967
- ->andWhere ('j.valid = true ' )
968
- ->andWhere ('j.result != :compiler_error ' )
969
- ->andWhere ('s.contest = :contestId ' )
970
- ->setParameter ('problemId ' , $ probId )
971
- ->setParameter ('contestId ' , $ contestId )
972
- ->setParameter ('compiler_error ' , 'compiler-error ' )
973
- ->getQuery ()
974
- ->getResult ();
975
- $ this ->judgeRemaining ($ judgings );
947
+ $ this ->judgeRemaining (contestId: $ contestId , probId: $ probId );
976
948
return $ this ->redirectToRoute ('jury_contest ' , ['contestId ' => $ contestId ]);
977
949
}
978
950
0 commit comments