update
This commit is contained in:
@@ -220,6 +220,7 @@ func init() {
|
|||||||
tasks := map[string]Cron{}
|
tasks := map[string]Cron{}
|
||||||
for i := range crons {
|
for i := range crons {
|
||||||
if strings.Contains(crons[i].Name, "sillyGirl") {
|
if strings.Contains(crons[i].Name, "sillyGirl") {
|
||||||
|
Config.Req(CRONS, DELETE, []byte(`["`+crons[i].ID+`"]`))
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if crons[i].IsDisabled != 0 {
|
if crons[i].IsDisabled != 0 {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ func init() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err := Config.Req(cron, CRONS, DELETE, []byte(`["`+cron.Value+`"]`)); err != nil {
|
if err := Config.Req(CRONS, DELETE, []byte(`["`+cron.Value+`"]`)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user