Schedule can be deactivated

This commit is contained in:
marmei
2020-06-03 23:11:25 +02:00
parent 38333d65cb
commit d8fc1aea97
6 changed files with 228 additions and 136 deletions

View File

@@ -40,7 +40,7 @@ func updateServerSettings(request RequestStruct) (settings SettingsStruct, err e
case "update":
// Leerzeichen aus den Werten entfernen und Formatierung der Uhrzeit überprüfen (0000 - 2359)
var newUpdateTimes []string
var newUpdateTimes = make([]string, 0)
for _, v := range value.([]interface{}) {
@@ -57,7 +57,7 @@ func updateServerSettings(request RequestStruct) (settings SettingsStruct, err e
}
if len(newUpdateTimes) == 0 {
newUpdateTimes = append(newUpdateTimes, "0000")
//newUpdateTimes = append(newUpdateTimes, "0000")
}
value = newUpdateTimes