From ebbc2c646feecf1e942917e9a571e74990c331a8 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Thu, 20 Apr 2023 16:47:47 +0200 Subject: [PATCH] fix dupe entries --- src/process/process.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process/process.ts b/src/process/process.ts index 132926e..fe4a606 100644 --- a/src/process/process.ts +++ b/src/process/process.ts @@ -63,7 +63,6 @@ async function processGlobalStats() { count('id').as('deaths'), 'victim_id', 'victim_current_weapon', - sql`last(attacker_name)`.as('attacker_name'), 'map', 'game_mode', 'servername', @@ -86,6 +85,7 @@ async function processGlobalStats() { .onRef('deaths.servername', '=', 'kills.servername') .onRef('deaths.host', '=', 'kills.host') .onRef('deaths.game_mode', '=', 'kills.game_mode') + .onRef('deaths.map', '=', 'kills.map') ) .selectAll('kills') .select(sql`COALESCE(deaths.deaths, 0)`.as('deaths'))