Increase max users on leaderboard limit to 500

This commit is contained in:
Howl 2016-09-28 18:43:56 +02:00
parent 017421b232
commit 90b7d71062

View File

@ -39,7 +39,7 @@ func LeaderboardGET(md common.MethodData) common.CodeMessager {
// Admins may not want to see banned users on the leaderboard. // Admins may not want to see banned users on the leaderboard.
// This is the default setting. In case they do, they have to activate see_everything. // This is the default setting. In case they do, they have to activate see_everything.
query := fmt.Sprintf(lbUserQuery, m, `WHERE `+md.User.OnlyUserPublic(md.HasQuery("see_everything"))+ query := fmt.Sprintf(lbUserQuery, m, `WHERE `+md.User.OnlyUserPublic(md.HasQuery("see_everything"))+
` ORDER BY leaderboard_`+m+`.position `+common.Paginate(md.Query("p"), md.Query("l"), 100)) ` ORDER BY leaderboard_`+m+`.position `+common.Paginate(md.Query("p"), md.Query("l"), 500))
rows, err := md.DB.Query(query) rows, err := md.DB.Query(query)
if err != nil { if err != nil {
md.Err(err) md.Err(err)