From ab9a64a66d6c5ca5b26c61f2b22678916abededb Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 27 Mar 2025 12:10:16 +0100 Subject: [PATCH] Alts in report maar niet in stats --- config/clanmembers.json | 7 ++++++- last_stats.php | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/config/clanmembers.json b/config/clanmembers.json index 56d0776..41d7159 100644 --- a/config/clanmembers.json +++ b/config/clanmembers.json @@ -13,6 +13,11 @@ "THAIlux", "Reijn7000", "McPikkie", - "Brabo-Gamer" + "Brabo-Gamer", + "Squadkiller101" + + ], + "alts": [ + "Squadkiller101" ] } diff --git a/last_stats.php b/last_stats.php index 14d7c3c..28ae21a 100644 --- a/last_stats.php +++ b/last_stats.php @@ -18,7 +18,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi

Player Stats past Quarter

$player_datas) { @@ -71,7 +72,10 @@ $ogDescription = "Explore detailed player statistics over the past month includi if (!isset($player_data['playername']) || is_null($player_data['playername'])) { continue; // Skip this iteration and move to the next } - + if (in_array($player_data['playername'], $alts)) { + continue; // Skip alt players + } + if ($key == 'all' && $player_data['matches'] < 25) { continue; }