From d6aa0a814dc7bef36fcf4e488258523f4a764fb8 Mon Sep 17 00:00:00 2001 From: Howl Date: Wed, 28 Sep 2016 20:49:58 +0200 Subject: [PATCH] Level on chosen_mode in leaderboard --- app/v1/leaderboard.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/v1/leaderboard.go b/app/v1/leaderboard.go index 8b49671..77de8fc 100644 --- a/app/v1/leaderboard.go +++ b/app/v1/leaderboard.go @@ -3,6 +3,7 @@ package v1 import ( "fmt" + "git.zxq.co/ripple/ocl" "git.zxq.co/ripple/rippleapi/common" ) @@ -61,6 +62,7 @@ func LeaderboardGET(md common.MethodData) common.CodeMessager { md.Err(err) continue } + u.ChosenMode.Level = ocl.GetLevelPrecise(int64(u.ChosenMode.TotalScore)) resp.Users = append(resp.Users, u) } resp.Code = 200