From 9c5bed8917b271630346c3651e127d788126de01 Mon Sep 17 00:00:00 2001 From: thijs Date: Fri, 3 Nov 2023 10:52:14 +0100 Subject: [PATCH] minimal 10 matches --- last_stats.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/last_stats.php b/last_stats.php index cb3cd23..4c9dc21 100644 --- a/last_stats.php +++ b/last_stats.php @@ -32,8 +32,9 @@ error_reporting(E_ALL); if ($key == 'updated') { continue; } + echo "
"; - echo "Stats for $key"; + echo "Stats for $key (minimal 10 matches)"; echo ""; echo " @@ -53,7 +54,9 @@ 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'] < 10){ + continue + } $player_name = $player_data['playername']; $deaths = number_format($player_data['deaths'], 2, ',', ''); $kills = number_format($player_data['kills'], 2, ',', '');
Playername