🐛 The explore page will now display the anime from the current year.
This commit is contained in:
parent
8e4bf457fd
commit
61e886a2a3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user