2018-03-22 21:26:52 +00:00
|
|
|
package filteranime
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/aerogo/aero"
|
|
|
|
"github.com/animenotifier/arn"
|
|
|
|
)
|
|
|
|
|
|
|
|
// StartDate ...
|
2019-06-01 04:55:49 +00:00
|
|
|
func StartDate(ctx aero.Context) error {
|
2018-03-22 21:26:52 +00:00
|
|
|
return editorList(
|
|
|
|
ctx,
|
|
|
|
"Anime without a valid start date",
|
|
|
|
func(anime *arn.Anime) bool {
|
|
|
|
_, err := time.Parse(arn.AnimeDateFormat, anime.StartDate)
|
|
|
|
return err != nil
|
|
|
|
},
|
|
|
|
nil,
|
|
|
|
)
|
|
|
|
}
|