Fix player profile runtime PostgreSQL grouping

This commit is contained in:
devRaGonSa
2026-06-09 11:23:39 +02:00
parent 5a52889cfb
commit 455a712913
3 changed files with 246 additions and 3 deletions

View File

@@ -803,7 +803,7 @@ def _fetch_player_stats(
row = connection.execute(
f"""
SELECT
COALESCE(MAX(stats.player_name), stats.player_id) AS player_name,
MAX(stats.player_name) AS player_name,
COUNT(DISTINCT stats.match_key) AS matches_considered,
SUM(COALESCE(stats.kills, 0)) AS kills,
SUM(COALESCE(stats.deaths, 0)) AS deaths,