From 88a9e7ac6607849b18608c085730e1edee1a7a71 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 29 Oct 2024 09:31:37 +0100 Subject: [PATCH] latestmatches fix --- update/get_matches.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index 3e1b0cb..5c6063d 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -110,7 +110,7 @@ $player_matches_object = @() foreach ($file in $matchfiles) { $filecontent = get-content $file | convertfrom-json $matchfiledate = $filecontent.data.attributes.createdAt - if ($matchfiledate -lt (get-date).AddMonths(-1)) { + if ($matchfiledate -lt (get-date).AddMonths(-3)) { write-output "archiving $matchfiledate" Move-Item -Path $file -Destination "$scriptroot/../data/matches/archive" }