From 7019466cc1057cc3c7b8478c26e9804e2475ccc8 Mon Sep 17 00:00:00 2001 From: Lanta Date: Thu, 18 Jul 2024 12:56:31 +0200 Subject: [PATCH] min 2 players --- last_stats.php | 8 ++++---- update/matchparser.ps1 | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/last_stats.php b/last_stats.php index b5d7389..397fe5a 100644 --- a/last_stats.php +++ b/last_stats.php @@ -33,8 +33,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi // if ($key == 'all') { // echo "Stats for $key (minimal 20 matches)"; // } - if ($key == 'clan_4_casual') { - echo "Stats for $key (minimal 4 matches)"; + if ($key == 'clan_casual') { + echo "Stats for $key (minimal 4 matches) - Clan casual min 2 clan players per match"; } if ($key == 'Intense') { echo "Stats for $key (minimal 8 matches)"; @@ -71,10 +71,10 @@ $ogDescription = "Explore detailed player statistics over the past month includi continue; // Skip this iteration and move to the next } - if ($key == 'all' && $player_data['matches'] < 20) { + if ($key == 'all' && $player_data['matches'] < 20) { continue; } - if ($key == 'clan_4_casual' && $player_data['matches'] < 4) { + if ($key == 'clan_casual' && $player_data['matches'] < 4) { continue; } if ($key == 'Intense' && $player_data['matches'] < 8) { diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index d0a16d4..ab75901 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -152,7 +152,7 @@ $matchfiles = Get-ChildItem "$scriptroot/../data/killstats/" -File -Filter *.jso $killstats_only_full_clan_matches = @() $guids = $matchfiles.Name | ForEach-Object { $_.Split("_")[0] } -$groupedGuids_full_clan_matches = $guids | Group-Object | Where-Object { $_.Count -eq 4 } +$groupedGuids_full_clan_matches = $guids | Group-Object | Where-Object { $_.Count -gt 1 } $last_month = (get-date).AddMonths($monthsback) foreach ($file in $matchfiles) { @@ -257,7 +257,7 @@ $formattedString = "$currentDateTime - Time Zone: $currentTimezone" $playerstats = [PSCustomObject]@{ all = $playerstats_all - clan_4_casual = $playerstats_airoyale_clan + clan_casual = $playerstats_airoyale_clan Intense = $playerstats_event_ibr Casual = $playerstats_airoyale official = $playerstats_official -- 2.49.1