From e06a19eaac9087fbfb88ebd1939de6eab59f55c1 Mon Sep 17 00:00:00 2001 From: stobbelaart Date: Sun, 12 Nov 2023 11:49:36 +0100 Subject: [PATCH] loc --- update/matchparser.ps1 | 3 ++- update/update_clan_members.ps1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 0c538c0..44c7ad6 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,5 +1,6 @@ Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append Write-Output 'Running from' +(Get-Location).path . .\..\includes\ps1\lockfile.ps1 new-lock @@ -166,7 +167,7 @@ foreach ($player in $all_player_matches.playername) { $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio - + write-output 'all' write-output "Calculating for player $player" write-output "new winratio $winratio" diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index f7af516..7279ee6 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,6 +1,6 @@ Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append Write-Output 'Running from' -Get-Location +(Get-Location).path . .\..\includes\ps1\lockfile.ps1 new-lock