From 57773b9f41fddc024611de3dad208c6f13996868 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 15 Feb 2023 16:50:06 +0800 Subject: [PATCH] fix(contest): check if has final_result when starting final test --- web/app/models/UOJContest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/models/UOJContest.php b/web/app/models/UOJContest.php index 3b74b85..b945dc3 100644 --- a/web/app/models/UOJContest.php +++ b/web/app/models/UOJContest.php @@ -247,7 +247,7 @@ class UOJContest { case 'no-details': case 'full': - if ($result['status'] == 'Judged') { + if ($result['status'] == 'Judged' && !isset($result['final_result'])) { $q += [ 'result' => $submission['result'], 'score' => $result['score'],