From faf81284743547dfda7ec06aa3d3c38e39c57c8e Mon Sep 17 00:00:00 2001 From: zztrans <53961131+Zztrans@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:52:57 +0800 Subject: [PATCH] fix: CE not count --- services/judge/judge_cache.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/judge/judge_cache.go b/services/judge/judge_cache.go index 7d1d8b5..ad82196 100644 --- a/services/judge/judge_cache.go +++ b/services/judge/judge_cache.go @@ -10,6 +10,10 @@ import ( ) func UpsertJudgeCache(ctx context.Context, uid uuid.UUID, verdict judge_model.JudgeVerdict) error { + if verdict == judge_model.JudgeVerdictCompileError { + return nil + } + db := gorm_agent.GetDefaultDB() judge, err := judge_model.GetJudge(db, uid) if err != nil {