Include player counts in results payload

This commit is contained in:
2026-02-03 02:06:51 +01:00
parent 8af26f89b3
commit 711c78d762
2 changed files with 3 additions and 1 deletions

View File

@@ -25,6 +25,8 @@ public static class ResultsEndpoints
s.Id,
s.Name,
Author = s.Player!.DisplayName,
s.MinPlayers,
s.MaxPlayers,
Total = s.Votes.Sum(v => v.Score),
Count = s.Votes.Count,
Average = s.Votes.Count == 0 ? 0 : s.Votes.Average(v => v.Score),