min 2 players #178
2 changed files with 6 additions and 6 deletions
|
|
@ -33,8 +33,8 @@ $ogDescription = "Explore detailed player statistics over the past month includi
|
||||||
// if ($key == 'all') {
|
// if ($key == 'all') {
|
||||||
// echo "Stats for $key (minimal 20 matches)";
|
// echo "Stats for $key (minimal 20 matches)";
|
||||||
// }
|
// }
|
||||||
if ($key == 'clan_4_casual') {
|
if ($key == 'clan_casual') {
|
||||||
echo "Stats for $key (minimal 4 matches)";
|
echo "Stats for $key (minimal 4 matches) - Clan casual min 2 clan players per match";
|
||||||
}
|
}
|
||||||
if ($key == 'Intense') {
|
if ($key == 'Intense') {
|
||||||
echo "Stats for $key (minimal 8 matches)";
|
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
|
continue; // Skip this iteration and move to the next
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($key == 'all' && $player_data['matches'] < 20) {
|
if ($key == 'all' && $player_data['matches'] < 20) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($key == 'clan_4_casual' && $player_data['matches'] < 4) {
|
if ($key == 'clan_casual' && $player_data['matches'] < 4) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($key == 'Intense' && $player_data['matches'] < 8) {
|
if ($key == 'Intense' && $player_data['matches'] < 8) {
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ $matchfiles = Get-ChildItem "$scriptroot/../data/killstats/" -File -Filter *.jso
|
||||||
|
|
||||||
$killstats_only_full_clan_matches = @()
|
$killstats_only_full_clan_matches = @()
|
||||||
$guids = $matchfiles.Name | ForEach-Object { $_.Split("_")[0] }
|
$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)
|
$last_month = (get-date).AddMonths($monthsback)
|
||||||
foreach ($file in $matchfiles) {
|
foreach ($file in $matchfiles) {
|
||||||
|
|
@ -257,7 +257,7 @@ $formattedString = "$currentDateTime - Time Zone: $currentTimezone"
|
||||||
|
|
||||||
$playerstats = [PSCustomObject]@{
|
$playerstats = [PSCustomObject]@{
|
||||||
all = $playerstats_all
|
all = $playerstats_all
|
||||||
clan_4_casual = $playerstats_airoyale_clan
|
clan_casual = $playerstats_airoyale_clan
|
||||||
Intense = $playerstats_event_ibr
|
Intense = $playerstats_event_ibr
|
||||||
Casual = $playerstats_airoyale
|
Casual = $playerstats_airoyale
|
||||||
official = $playerstats_official
|
official = $playerstats_official
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue