Increase max users on leaderboard limit to 500
This commit is contained in:
parent
017421b232
commit
90b7d71062
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user