@@ -708,7 +708,7 @@ public function prefetchAction(Request $request, int $contestId): Response
708
708
// TODO: dedup here?
709
709
$ compareExec = $ this ->dj ->getImmutableCompareExecutable ($ contestProblem );
710
710
$ runExec = $ this ->dj ->getImmutableRunExecutable ($ contestProblem );
711
- $ runConfig = $ this -> dj -> jsonEncode (
711
+ $ runConfig = Utils:: jsonEncode (
712
712
[
713
713
'hash ' => $ runExec ->getHash (),
714
714
'combined_run_compare ' => $ problem ->getCombinedRunCompare (),
@@ -720,7 +720,7 @@ public function prefetchAction(Request $request, int $contestId): Response
720
720
->setJudgehost ($ judgehost )
721
721
->setPriority (JudgeTask::PRIORITY_DEFAULT )
722
722
->setCompareScriptId ($ compareExec ->getImmutableExecId ())
723
- ->setCompareConfig ($ this -> dj -> jsonEncode (['hash ' => $ compareExec ->getHash ()]))
723
+ ->setCompareConfig (Utils:: jsonEncode (['hash ' => $ compareExec ->getHash ()]))
724
724
->setRunScriptId ($ runExec ->getImmutableExecId ())
725
725
->setRunConfig ($ runConfig );
726
726
$ this ->em ->persist ($ judgeTask );
@@ -741,7 +741,7 @@ public function prefetchAction(Request $request, int $contestId): Response
741
741
->setJudgehost ($ judgehost )
742
742
->setPriority (JudgeTask::PRIORITY_DEFAULT )
743
743
->setCompileScriptId ($ compileExec ->getImmutableExecId ())
744
- ->setCompileConfig ($ this -> dj -> jsonEncode (['hash ' => $ compileExec ->getHash ()]));
744
+ ->setCompileConfig (Utils:: jsonEncode (['hash ' => $ compileExec ->getHash ()]));
745
745
$ this ->em ->persist ($ judgeTask );
746
746
$ cnt ++;
747
747
}
0 commit comments