From 199512dbc9434c4ed03b9cb43f354b1a82e3330b Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 27 Mar 2018 21:31:43 +0200 Subject: [PATCH] Added minimum year --- pages/explore/halloffame/halloffame.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/explore/halloffame/halloffame.go b/pages/explore/halloffame/halloffame.go index d33c131a..faed67b9 100644 --- a/pages/explore/halloffame/halloffame.go +++ b/pages/explore/halloffame/halloffame.go @@ -10,6 +10,8 @@ import ( "github.com/animenotifier/notify.moe/utils" ) +const minYear = 1963 + // Get ... func Get(ctx *aero.Context) string { user := utils.GetUser(ctx) @@ -21,7 +23,9 @@ func Get(ctx *aero.Context) string { return false } - if anime.StartDateTime().Year() > maxYear { + year := anime.StartDateTime().Year() + + if year > maxYear || year < minYear { return false }