implement upsert, list in UI

This commit is contained in:
bel
2020-03-15 16:41:41 +00:00
parent 3c796942f5
commit 6d0edd55f6
4 changed files with 61 additions and 52 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/logger"
"os/exec"
"strings"
"time"
@@ -58,7 +57,6 @@ func newBashJob(schedule, sh string) (*Job, error) {
if cmd != nil && cmd.ProcessState != nil {
j.LastStatus = cmd.ProcessState.ExitCode()
}
logger.New().Info(fmt.Sprintf("%+v", j))
b, err := j.Encode()
if err == nil {
// TODO webpage doenst load post SET despite this returning nil