@@ -708,7 +708,7 @@ public function prefetchAction(Request $request, int $contestId): Response
708708 // TODO: dedup here?
709709 $ compareExec = $ this ->dj ->getImmutableCompareExecutable ($ contestProblem );
710710 $ runExec = $ this ->dj ->getImmutableRunExecutable ($ contestProblem );
711- $ runConfig = $ this -> dj -> jsonEncode (
711+ $ runConfig = Utils:: jsonEncode (
712712 [
713713 'hash ' => $ runExec ->getHash (),
714714 'combined_run_compare ' => $ problem ->getCombinedRunCompare (),
@@ -720,7 +720,7 @@ public function prefetchAction(Request $request, int $contestId): Response
720720 ->setJudgehost ($ judgehost )
721721 ->setPriority (JudgeTask::PRIORITY_DEFAULT )
722722 ->setCompareScriptId ($ compareExec ->getImmutableExecId ())
723- ->setCompareConfig ($ this -> dj -> jsonEncode (['hash ' => $ compareExec ->getHash ()]))
723+ ->setCompareConfig (Utils:: jsonEncode (['hash ' => $ compareExec ->getHash ()]))
724724 ->setRunScriptId ($ runExec ->getImmutableExecId ())
725725 ->setRunConfig ($ runConfig );
726726 $ this ->em ->persist ($ judgeTask );
@@ -741,7 +741,7 @@ public function prefetchAction(Request $request, int $contestId): Response
741741 ->setJudgehost ($ judgehost )
742742 ->setPriority (JudgeTask::PRIORITY_DEFAULT )
743743 ->setCompileScriptId ($ compileExec ->getImmutableExecId ())
744- ->setCompileConfig ($ this -> dj -> jsonEncode (['hash ' => $ compileExec ->getHash ()]));
744+ ->setCompileConfig (Utils:: jsonEncode (['hash ' => $ compileExec ->getHash ()]));
745745 $ this ->em ->persist ($ judgeTask );
746746 $ cnt ++;
747747 }
0 commit comments