mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 06:02:28 +00:00
parent
5df6fbbb1c
commit
b31522733c
3 changed files with 5 additions and 8 deletions
|
@ -39,8 +39,7 @@ public class UsersPage : BaseLayout
|
|||
|
||||
if (this.PageNumber < 0 || this.PageNumber >= this.PageAmount) return this.Redirect($"/users/{Math.Clamp(this.PageNumber, 0, this.PageAmount - 1)}");
|
||||
|
||||
this.Users = await this.Database.Users.Where
|
||||
(u => !u.Banned && u.Username.Contains(name))
|
||||
this.Users = await this.Database.Users.Where(u => !u.Banned && u.Username.Contains(name))
|
||||
.OrderByDescending(b => b.UserId)
|
||||
.Skip(pageNumber * ServerStatics.PageSize)
|
||||
.Take(ServerStatics.PageSize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue