File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -732,13 +732,11 @@ public function submitSolution(
732732 // This is so that we can use the submitid/judgingid below.
733733 $ this ->em ->flush ();
734734
735- $ priority = match ($ source ) {
736- SubmissionSource::PROBLEM_IMPORT => JudgeTask::PRIORITY_LOW ,
737- default => JudgeTask::PRIORITY_DEFAULT ,
738- };
739735 // Create judgetask as invalid when evaluating as analyst.
740736 $ lazyEval = $ this ->config ->get ('lazy_eval_results ' );
741- $ this ->dj ->maybeCreateJudgeTasks ($ judging , $ priority , valid: $ lazyEval !== DOMJudgeService::EVAL_ANALYST );
737+ $ isAnalystImport = $ source === SubmissionSource::PROBLEM_IMPORT && $ lazyEval === DOMJudgeService::EVAL_ANALYST ;
738+ $ priority = $ isAnalystImport ? JudgeTask::PRIORITY_LOW : JudgeTask::PRIORITY_DEFAULT ;
739+ $ this ->dj ->maybeCreateJudgeTasks ($ judging , $ priority , valid: !$ isAnalystImport );
742740 }
743741
744742 $ this ->em ->wrapInTransaction (function () use ($ contest , $ submission ) {
You can’t perform that action at this time.
0 commit comments