save killstats
This commit is contained in:
parent
76b38729e7
commit
5dbde92e53
1 changed files with 2 additions and 2 deletions
|
|
@ -100,11 +100,11 @@ foreach ($player in $all_player_matches) {
|
|||
write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)"
|
||||
$killstat = get-killstats -player_name $player_name -telemetry ($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' }) -gameMode $match.gameMode -matchType $match.matchType
|
||||
$killstats += $killstat
|
||||
if ($save) {
|
||||
if ($true) {
|
||||
$savekillstats = @{
|
||||
matchid = $match.id
|
||||
created = $match.createdAt
|
||||
stats = $killstats
|
||||
stats = $killstat
|
||||
}
|
||||
$savekillstats | ConvertTo-Json | out-file "$scriptroot/../data/killstats/$($match.id).json"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue