From fa6c1e125fb2a7b0764df657261f87d6f676ba35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Mon, 6 Oct 2025 07:43:20 +0200 Subject: [PATCH] =?UTF-8?q?Justerat=20summering=20av=20po=C3=A4ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GreadyPoang.DataLayer/DataClasses/CombinedRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GreadyPoang.DataLayer/DataClasses/CombinedRepository.cs b/GreadyPoang.DataLayer/DataClasses/CombinedRepository.cs index 4d01f3c..f2db7c6 100644 --- a/GreadyPoang.DataLayer/DataClasses/CombinedRepository.cs +++ b/GreadyPoang.DataLayer/DataClasses/CombinedRepository.cs @@ -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