mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
e2ef54152d
refactor: adapt report generation scheduling
12 lines
174 B
Go
12 lines
174 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
func CronPadToSecondly(expr string) string {
|
|
parts := strings.Split(expr, " ")
|
|
if len(parts) == 6 {
|
|
return expr
|
|
}
|
|
return "0 " + expr
|
|
}
|