Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Jan 22, 2025
1 parent d85b0b2 commit 5e9edb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public async Task<IEnumerable<CompetitiveModeCertificate>> GetCompetitiveCertifi
.WithNoTracking<Data.Player>()
.Where(p => p.UserId == userId && p.Game.GameEnd < now || p.Game.GameEnd == DateTimeOffset.MinValue)
.Where(p => p.Game.CertificateTemplateId != string.Empty && p.Game.CertificateTemplateId != null)
.Where(p => p.Challenges.All(c => c.PlayerMode == PlayerMode.Competition))
.Where(p => p.Challenges.Any(c => c.PlayerMode == PlayerMode.Competition))
.Select(p => new { p.Id, p.SessionEnd, AllCompetitive = p.Challenges.All(c => c.PlayerMode == PlayerMode.Competition), AnyCompetitive = p.Challenges.Any(c => c.PlayerMode == PlayerMode.Competition) })
.ToArrayAsync(cancellationToken);
Console.WriteLine("players " + string.Join(',', matches.Select(m => $"{m.Id} {m.SessionEnd} {m.AllCompetitive} {m.AnyCompetitive}")));
Expand Down

0 comments on commit 5e9edb0

Please sign in to comment.