Fix admin toggle visibility, include media in results, remove stretch tasks

This commit is contained in:
2026-01-28 15:40:25 +01:00
parent abd0720821
commit bec3930200
4 changed files with 21 additions and 11 deletions

View File

@@ -303,7 +303,11 @@ api.MapGet("/results", async (AppDbContext db) =>
Author = s.Player!.DisplayName,
Total = s.Votes.Sum(v => v.Score),
Count = s.Votes.Count,
Average = s.Votes.Count == 0 ? 0 : s.Votes.Average(v => v.Score)
Average = s.Votes.Count == 0 ? 0 : s.Votes.Average(v => v.Score),
s.ScreenshotUrl,
s.YoutubeUrl,
s.Description,
s.Genre
})
.OrderByDescending(r => r.Total)
.ToListAsync();