This commit is contained in:
Lanta 2023-11-22 16:09:38 +01:00
parent 593131c161
commit 597b93f4ea
2 changed files with 7 additions and 7 deletions

View file

@ -61,16 +61,16 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
echo "<table border='1' class='sortable'>";
echo "<tr><th>Match Date</th><th>Game Mode</th><th>Match Type</th><th>Map</th><th>Kills</th><th>Damage Dealt</th><th>Time Survived</th><th>win Place</th></tr>";
foreach ($players_matches as $match) {
print_r($match['stats']);
// print_r($match['stats']);
foreach ($match['stats'] as $stats) {
if ($stats['name'] === $selected_player) {
// if (isset($_GET['filter_by_match_type'])) {
// if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
// continue;
// }
// }
if (isset($_GET['filter_by_match_type'])) {
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
continue;
}
}
$date = new DateTime($match['createdAt']);
$date->modify('+1 hours');
$formattedDate = $date->format('m-d H:i:s');

View file

@ -114,7 +114,7 @@ foreach ($file in $matchfiles) {
createdAt = $filecontent.data.attributes.createdAt
mapName = $filecontent.data.attributes.mapName
id = $filecontent.data.id
stats = $player_matches_cached
stats = @($player_matches_cached)
}
}
write-output "NEW $matchfiledate"