mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
change: winlb now has 9 items per page to look not broken
This commit is contained in:
@@ -152,7 +152,7 @@ public partial class Gambling
|
|||||||
if (user.StartsWith("??"))
|
if (user.StartsWith("??"))
|
||||||
user = x.UserId.ToString();
|
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;
|
return outputItems;
|
||||||
@@ -169,7 +169,7 @@ public partial class Gambling
|
|||||||
await Response()
|
await Response()
|
||||||
.Paginated()
|
.Paginated()
|
||||||
.PageItems(p => GetCachedWinLbAsync(p))
|
.PageItems(p => GetCachedWinLbAsync(p))
|
||||||
.PageSize(10)
|
.PageSize(9)
|
||||||
.Page((items, curPage) =>
|
.Page((items, curPage) =>
|
||||||
{
|
{
|
||||||
var eb = CreateEmbed()
|
var eb = CreateEmbed()
|
||||||
|
@@ -60,8 +60,8 @@ public sealed class UserBetStatsService : INService
|
|||||||
await using var ctx = _db.GetDbContext();
|
await using var ctx = _db.GetDbContext();
|
||||||
return await ctx.GetTable<UserBetStats>()
|
return await ctx.GetTable<UserBetStats>()
|
||||||
.OrderByDescending(x => x.MaxWin)
|
.OrderByDescending(x => x.MaxWin)
|
||||||
.Skip(page * 10)
|
.Skip(page * 9)
|
||||||
.Take(10)
|
.Take(9)
|
||||||
.ToArrayAsyncLinqToDB();
|
.ToArrayAsyncLinqToDB();
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user