mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 06:02:28 +00:00
StasticsHelper + Community Tab Performance Fix (#713)
* Player count shows per game * Fixed LBP3 categories lagigng & StatisticsHelper Co-authored-by: koko <sudokoko@users.noreply.github.com> * Fixed "planetStats" mmPicksCount * Hopefully the final update to this PR! (Bug fixes) * Update ProjectLighthouse/Types/Entities/Level/Slot.cs Co-authored-by: koko <68549366+sudokoko@users.noreply.github.com> * Update ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs I'm trusting you that nothing breaks here lol Co-authored-by: Josh <josh@slendy.pw> * Update ProjectLighthouse.Servers.GameServer/Controllers/Slots/SlotsController.cs bad slendy >:( Co-authored-by: koko <68549366+sudokoko@users.noreply.github.com> --------- Co-authored-by: koko <sudokoko@users.noreply.github.com> Co-authored-by: koko <68549366+sudokoko@users.noreply.github.com> Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
14e40de18f
commit
9b014fa01c
12 changed files with 19 additions and 13 deletions
|
@ -280,7 +280,7 @@ public class SlotsController : ControllerBase
|
|||
.Take(Math.Min(pageSize, 30));
|
||||
string response = Enumerable.Aggregate(slots, string.Empty, (current, slot) => current + slot.Serialize(gameVersion));
|
||||
int start = pageStart + Math.Min(pageSize, ServerConfiguration.Instance.UserGeneratedContentLimits.EntitledSlots);
|
||||
int total = await StatisticsHelper.TeamPickCount(this.database);
|
||||
int total = await StatisticsHelper.TeamPickCountForGame(this.database, token.GameVersion);
|
||||
|
||||
return this.Ok(generateSlotsResponse(response, start, total));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue