Files
huso/praktikant.go
2022-04-14 00:33:38 +02:00

28 lines
404 B
Go

package main
import (
"time"
"github.com/gookit/color"
)
func Arbeiten() {
for range time.Tick(time.Hour) {
// Alle Daten
_, bytes, err := GetSeasonDataAll()
if err != nil {
color.Errorln(err.Error())
} else {
err = cache.Set(seasonApiJikan, bytes)
if err != nil {
color.Errorln(err.Error())
}
}
err = DbClean()
if err != nil {
color.Errorln(err.Error())
}
}
}