winlb now has 9 items per page to look not broken

This commit is contained in:
Toastie 2024-12-12 19:33:44 +13:00
parent a943a2a4ec
commit a7529496ce
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 4 additions and 4 deletions

View file

@ -152,7 +152,7 @@ public partial class Gambling
if (user.StartsWith("??"))
user = x.UserId.ToString();
outputItems.Add(new WinLbStat(i + 1 + (page * 10), user, x.Game, x.MaxWin));
outputItems.Add(new WinLbStat(i + 1 + (page * 9), user, x.Game, x.MaxWin));
}
return outputItems;
@ -169,7 +169,7 @@ public partial class Gambling
await Response()
.Paginated()
.PageItems(p => GetCachedWinLbAsync(p))
.PageSize(10)
.PageSize(9)
.Page((items, curPage) =>
{
var eb = CreateEmbed()

View file

@ -60,8 +60,8 @@ public sealed class UserBetStatsService : IEService
await using var ctx = _db.GetDbContext();
return await ctx.GetTable<UserBetStats>()
.OrderByDescending(x => x.MaxWin)
.Skip(page * 10)
.Take(10)
.Skip(page * 9)
.Take(9)
.ToArrayAsyncLinqToDB();
}
}