From 9cb9932c94264892565f28cea9cc6c38f7bc1c86 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 29 Sep 2023 14:34:06 +0200 Subject: [PATCH] updated --- last_stats.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/last_stats.php b/last_stats.php index e06259a..101498c 100644 --- a/last_stats.php +++ b/last_stats.php @@ -29,6 +29,10 @@ error_reporting(E_ALL); $players_matches = json_decode(file_get_contents('./data/player_last_stats.json'), true); foreach ($players_matches as $key => $player_datas) { + if ($key == 'updated') { + continue; + } + echo "
"; echo "Stats for $key"; echo ""; echo " @@ -44,9 +48,7 @@ error_reporting(E_ALL); if (!isset($player_data['playername']) || is_null($player_data['playername'])) { continue; // Skip this iteration and move to the next } - // if ($player_data['matches'] == 0) { - // continue; - //} + $player_name = $player_data['playername']; $deaths = number_format($player_data['deaths'], 2, ',', ''); $kills = number_format($player_data['kills'], 2, ',', '');