Ordning på spelarnas poängsummor + popup i participant och i RoundRunning när någon är på väg att vinna

This commit is contained in:
2025-10-18 09:52:49 +02:00
parent bb8f4bd5ed
commit a8ca07a1bf
7 changed files with 78 additions and 7 deletions

View File

@ -52,14 +52,14 @@ public class CombinedRepository : ICombinedRepository
gp.GamePointId,
gp.GameRoundId,
gp.GameRoundRegNr,
gp.GameRegPoints,
latest.totPoints as GameRegPoints,
gr.GameRoundStartDate,
gr.GameStatus AS Status,
p.ParticipantId,
(p.LastName || ' ' || p.FirstName) AS ParticipantName
FROM GamePoints gp
INNER JOIN (
SELECT ParticipantId, GameRoundId, MAX(GamePointId) AS MaxGamePointId
SELECT ParticipantId, GameRoundId, MAX(GamePointId) AS MaxGamePointId, sum(GameRegPoints) AS totPoints
FROM GamePoints
GROUP BY ParticipantId, GameRoundId
) latest ON gp.GamePointId = latest.MaxGamePointId