🐛 The explore page will now display the anime from the current year.

This commit is contained in:
Scott 2018-01-27 17:36:00 +01:00
parent 8e4bf457fd
commit 61e886a2a3

View File

@ -5,11 +5,13 @@ import (
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components" "github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils" "github.com/animenotifier/notify.moe/utils"
"time"
"strconv"
) )
// Get ... // Get ...
func Get(ctx *aero.Context) string { func Get(ctx *aero.Context) string {
year := "2017" year := strconv.Itoa(time.Now().Year())
status := "current" status := "current"
typ := "tv" typ := "tv"
results := filterAnime(year, status, typ) results := filterAnime(year, status, typ)