Skip to content

Commit

Permalink
fix: CE not count
Browse files Browse the repository at this point in the history
  • Loading branch information
Zztrans committed Oct 1, 2024
1 parent a9865b8 commit faf8128
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/judge/judge_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit faf8128

Please sign in to comment.