Merge pull request #79 from OpzekerIT/dev

Minimap 10 matches
This commit is contained in:
Lanta 2023-11-03 10:54:34 +01:00 committed by GitHub
commit 00532d0c07
2 changed files with 6 additions and 3 deletions

View file

@ -32,8 +32,9 @@ error_reporting(E_ALL);
if ($key == 'updated') { if ($key == 'updated') {
continue; continue;
} }
echo "<br>"; echo "<br>";
echo "Stats for $key"; echo "Stats for $key (minimal 10 matches)";
echo "<table border='1' class='sortable'>"; echo "<table border='1' class='sortable'>";
echo "<tr> echo "<tr>
<th>Playername</th> <th>Playername</th>
@ -53,7 +54,9 @@ error_reporting(E_ALL);
if (!isset($player_data['playername']) || is_null($player_data['playername'])) { if (!isset($player_data['playername']) || is_null($player_data['playername'])) {
continue; // Skip this iteration and move to the next continue; // Skip this iteration and move to the next
} }
if ($player_data['matches'] < 10){
continue;
}
$player_name = $player_data['playername']; $player_name = $player_data['playername'];
$deaths = number_format($player_data['deaths'], 2, ',', ''); $deaths = number_format($player_data['deaths'], 2, ',', '');
$kills = number_format($player_data['kills'], 2, ',', ''); $kills = number_format($player_data['kills'], 2, ',', '');