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 "<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>"; 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) { foreach ($players_matches as $match) {
print_r($match['stats']); // print_r($match['stats']);
foreach ($match['stats'] as $stats) { foreach ($match['stats'] as $stats) {
if ($stats['name'] === $selected_player) { if ($stats['name'] === $selected_player) {
// if (isset($_GET['filter_by_match_type'])) { if (isset($_GET['filter_by_match_type'])) {
// if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) { if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
// continue; continue;
// } }
// } }
$date = new DateTime($match['createdAt']); $date = new DateTime($match['createdAt']);
$date->modify('+1 hours'); $date->modify('+1 hours');
$formattedDate = $date->format('m-d H:i:s'); $formattedDate = $date->format('m-d H:i:s');

View file

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