commit
35bfffb0cd
2 changed files with 9 additions and 6 deletions
|
|
@ -1,9 +1,6 @@
|
||||||
Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append
|
Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append
|
||||||
Write-Output 'Running from'
|
Write-Output 'Running from'
|
||||||
(Get-Location).path
|
(Get-Location).path
|
||||||
. ./../includes/ps1/lockfile.ps1
|
|
||||||
|
|
||||||
new-lock
|
|
||||||
|
|
||||||
if ($PSScriptRoot.length -eq 0) {
|
if ($PSScriptRoot.length -eq 0) {
|
||||||
$scriptroot = Get-Location
|
$scriptroot = Get-Location
|
||||||
|
|
@ -12,6 +9,10 @@ else {
|
||||||
$scriptroot = $PSScriptRoot
|
$scriptroot = $PSScriptRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
. $scriptroot\..\includes\ps1\lockfile.ps1
|
||||||
|
new-lock
|
||||||
|
|
||||||
|
|
||||||
function Get-Change {
|
function Get-Change {
|
||||||
param (
|
param (
|
||||||
[double]$OldWinRatio,
|
[double]$OldWinRatio,
|
||||||
|
|
@ -103,7 +104,7 @@ foreach ($player in $all_player_matches) {
|
||||||
$player_name = $player.playername
|
$player_name = $player.playername
|
||||||
|
|
||||||
foreach ($match in $player.player_matches) {
|
foreach ($match in $player.player_matches) {
|
||||||
|
write-output "Analyzing match $($match.id) for player $player_name"
|
||||||
if (!(Test-Path -path "$scriptroot/../data/killstats/$($match.id)_$player_name.json" )) {
|
if (!(Test-Path -path "$scriptroot/../data/killstats/$($match.id)_$player_name.json" )) {
|
||||||
$telemetryfile = "$scriptroot/../data/telemetry_cache/$($match.telemetry_url.split("/")[-1])"
|
$telemetryfile = "$scriptroot/../data/telemetry_cache/$($match.telemetry_url.split("/")[-1])"
|
||||||
if (!(test-path -Path $telemetryfile)) {
|
if (!(test-path -Path $telemetryfile)) {
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append
|
Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append
|
||||||
Write-Output 'Running from'
|
Write-Output 'Running from'
|
||||||
(Get-Location).path
|
(Get-Location).path
|
||||||
. ./../includes/ps1/lockfile.ps1
|
|
||||||
|
|
||||||
new-lock
|
|
||||||
if ($PSScriptRoot.length -eq 0) {
|
if ($PSScriptRoot.length -eq 0) {
|
||||||
$scriptroot = Get-Location
|
$scriptroot = Get-Location
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$scriptroot = $PSScriptRoot
|
$scriptroot = $PSScriptRoot
|
||||||
}
|
}
|
||||||
|
|
||||||
|
. $scriptroot\..\includes\ps1\lockfile.ps1
|
||||||
|
new-lock
|
||||||
|
|
||||||
# Read the content of the file as a single string
|
# Read the content of the file as a single string
|
||||||
$fileContent = Get-Content -Path "$scriptroot/../config/config.php" -Raw
|
$fileContent = Get-Content -Path "$scriptroot/../config/config.php" -Raw
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue