Improved osu ranking list

This commit is contained in:
2017-10-07 10:52:59 +02:00
parent 2d71b2408e
commit 5becba19de
4 changed files with 47 additions and 18 deletions

View File

@ -27,7 +27,11 @@ func Osu(ctx *aero.Context) string {
return ctx.Error(http.StatusInternalServerError, "Could not fetch user data", err)
}
return ctx.HTML(components.Users(users))
if len(users) > 50 {
users = users[:50]
}
return ctx.HTML(components.OsuRankingList(users))
}
// Staff ...