Merge pull request #89 from soulcramer/Fix_Explore_Date

🐛 The explore page will now display the anime from the current year.
This commit is contained in:
Eduard Urbach 2018-02-06 14:39:18 +01:00 committed by GitHub
commit dd214fdcc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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