latestmatches fix
This commit is contained in:
parent
618c36cb18
commit
88a9e7ac66
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue