This commit is contained in:
bel
2020-03-16 00:48:06 +00:00
parent fd71221cbf
commit 89822b7012
6 changed files with 14 additions and 8 deletions

View File

@@ -2,7 +2,6 @@ package server
import (
"local/firestormy/scheduler"
"strings"
"time"
)
@@ -21,7 +20,7 @@ func toMap(j *scheduler.Job) map[string]interface{} {
out["last"] = map[string]interface{}{
"run": j.LastRun.In(tz).Format(`2006-01-02 15:04:05 MST`),
"runtime": j.LastRuntime.String(),
"output": strings.ReplaceAll(j.LastOutput, "\n", "<br>"),
"output": j.LastOutput,
"status": j.LastStatus,
}
return out