From 890d445c7849c3e9e45c9819992c552f2796ce74 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 8 Oct 2025 15:22:32 +0200 Subject: [PATCH] geen events --- update/get_matches.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index 35e5d5f..a3d029a 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -48,7 +48,10 @@ foreach ($player in $player_data) { $stats.included = $sortedStats $stats | ConvertTo-Json -Depth 100 | Out-File "$scriptroot/../data/matches/$match.json" } - + if($stats.data.attributes.matchtype -eq 'event'){ + write-output 'Skipping because of event' + continue + } $playermatches += [PSCustomObject]@{ stats = $stats.included.ATTRIBUTES.stats | where-object { $_.name -eq $player.attributes.name } matchType = $stats.data.attributes.matchtype -- 2.49.1