Skip to content

Commit

Permalink
Fix GetRankList
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Oct 1, 2024
1 parent db89ff0 commit 1ce7e32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/judge/judge_rank.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ func GetRankList(
var rankList []judge_model.JudgeRank

for i, rankCache := range rankCacheList {
if rankCache.TotalSubmissions == 0 {
continue
}
rankList = append(rankList, judge_model.JudgeRank{
Rank: i + *offset + 1,
User: rankCache.User,
Expand Down

0 comments on commit 1ce7e32

Please sign in to comment.