okay maybe now it's fixed

This commit is contained in:
Erik Eckert 2023-09-27 14:30:26 -06:00
parent 58de9f534f
commit 0dcfba2fec

View File

@ -105,7 +105,7 @@ $OfficeList | ForEach-Object -parallel {
$Path = $_.FullName.Replace("'", "`'") #SQL Formatted Path $Path = $_.FullName.Replace("'", "`'") #SQL Formatted Path
$projectnumber = $result.tostring() $projectnumber = $result.tostring()
$DBConnect = New-SqliteConnection -DataSource $PathToDB_Copy $DBConnect = New-SqliteConnection -DataSource $PathToDB_Copy
$Query = "Select Project FROM FolderData where Project = '$ProjectNumber' AND Server = '$Server' AND Path = '$Path';" $Query = "Select Project FROM FolderData where Project = '$ProjectNumber' AND Server = '$Server' AND Path = `"$Path`";"
$sql_result = Invoke-SqliteQuery -DataSource $PathToDB_Copy -Query $Query $sql_result = Invoke-SqliteQuery -DataSource $PathToDB_Copy -Query $Query
if (($sql_result.project -eq $null)) { if (($sql_result.project -eq $null)) {