From ef14f027b78822af56ba48ceaf9d72ec8e6256b1 Mon Sep 17 00:00:00 2001 From: Howl Date: Wed, 18 May 2016 17:49:46 +0200 Subject: [PATCH] Fix normalisation not actually happening in users/full --- app/v1/user.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/v1/user.go b/app/v1/user.go index a6c7006..8c3dbe0 100644 --- a/app/v1/user.go +++ b/app/v1/user.go @@ -243,6 +243,11 @@ LIMIT 1 r.RegisteredOn = time.Unix(registeredOn, 0) r.LatestActivity = time.Unix(latestActivity, 0) + r.STD = r.STD.Normalise() + r.Taiko = r.Taiko.Normalise() + r.CTB = r.CTB.Normalise() + r.Mania = r.Mania.Normalise() + for _, m := range []*modeData{&r.STD, &r.Taiko, &r.CTB, &r.Mania} { m.Level = ocl.GetLevelPrecise(int64(m.TotalScore)) }