min 2 players

This commit is contained in:
Lanta 2024-07-18 12:56:31 +02:00
parent 16265f138d
commit 7019466cc1
2 changed files with 6 additions and 6 deletions

View file

@ -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) {

View file

@ -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