fixes #140

Merged
OpzekerIT merged 9 commits from dev into main 2023-11-22 15:19:33 +00:00
2 changed files with 7 additions and 7 deletions
Showing only changes of commit 42d4ea3961 - Show all commits

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"