We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3681cf8 commit 82be943Copy full SHA for 82be943
Server/Api/DataController.cs
@@ -116,13 +116,14 @@ [FromQuery] string guid
116
{
117
return BadRequest("Invalid GUID");
118
}
119
-
120
- var replays = await _context.Players
+
+ var replays = (await _context.Players
121
.Where(p => p.PlayerGuid == playerGuid)
122
.Include(p => p.Replay)
123
.Include(r => r.Replay.RoundEndPlayers)
124
.Select(p => p.Replay)
125
- .ToListAsync();
+ .ToListAsync()
126
+ ).DistinctBy(p => p.Id);
127
128
var charactersPlayed = new List<CharacterData>();
129
var totalPlaytime = TimeSpan.Zero;
0 commit comments