Fix normalisation not actually happening in users/full

This commit is contained in:
Howl 2016-05-18 17:49:46 +02:00
parent 330757ec78
commit ef14f027b7

View File

@ -243,6 +243,11 @@ LIMIT 1
r.RegisteredOn = time.Unix(registeredOn, 0) r.RegisteredOn = time.Unix(registeredOn, 0)
r.LatestActivity = time.Unix(latestActivity, 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} { for _, m := range []*modeData{&r.STD, &r.Taiko, &r.CTB, &r.Mania} {
m.Level = ocl.GetLevelPrecise(int64(m.TotalScore)) m.Level = ocl.GetLevelPrecise(int64(m.TotalScore))
} }