fighting escapes
Build and Push Docker Image / build (push) Successful in 29s

This commit is contained in:
2026-05-07 17:03:27 -05:00
parent 5216703423
commit 985837bc2c
+5 -4
View File
@@ -26,6 +26,7 @@ function Send-Notification
title=$title
body=$content
tags="$appriseWebhookTag"
"interpret-escapes"=yes
}
$json = $body | ConvertTo-Json
try {
@@ -83,10 +84,10 @@ foreach($chore in $chores)
if ($overdueTasks.Count -ne 0)
{
Write-Host "Sending a notification for $($overdueTasks.Count) overdue tasks"
$content = "The following tasks are overdue!/n"
$content = "The following tasks are overdue!\\n"
foreach($overdueTask in $overdueTasks)
{
$content += "$($overdueTask.Name) was due $(Get-Date $overdueTask.nextDueDate -Format "MM/dd/yyyy HH:mm")/n"
$content += "$($overdueTask.Name) was due $(Get-Date $overdueTask.nextDueDate -Format "MM/dd/yyyy HH:mm")\\n"
}
Send-Notification -title "OVERDUE TASKS" -content $content
}
@@ -94,10 +95,10 @@ if ($overdueTasks.Count -ne 0)
if ($todaysTasks.Count -ne 0)
{
Write-Host "Sending a notification for $($todaysTasks.Count) tasks due today"
$content = "The following tasks are due today!/n"
$content = "The following tasks are due today!\\n"
foreach($task in $todaysTasks)
{
$content += "$($task.Name) is due $(Get-Date $task.nextDueDate -Format "MM/dd/yyyy HH:mm")/n"
$content += "$($task.Name) is due $(Get-Date $task.nextDueDate -Format "MM/dd/yyyy HH:mm")\\n"
}
Send-Notification -title "TODAY'S TASKS" -content $content
}