Upgraded to latest aero version

This commit is contained in:
2019-06-01 13:55:49 +09:00
parent ae591e5e7e
commit 28db818c37
196 changed files with 645 additions and 593 deletions

View File

@ -11,7 +11,7 @@ import (
)
// Filter ...
func Filter(ctx *aero.Context) string {
func Filter(ctx aero.Context) error {
year := ctx.Get("year")
season := ctx.Get("season")
status := ctx.Get("status")

View File

@ -18,7 +18,7 @@ const (
)
// AnimeByAverageColor returns all anime with an image in the given color.
func AnimeByAverageColor(ctx *aero.Context) string {
func AnimeByAverageColor(ctx aero.Context) error {
user := utils.GetUser(ctx)
color := ctx.Get("color")
index, _ := ctx.GetInt("index")

View File

@ -12,7 +12,7 @@ import (
)
// Sequels ...
func Sequels(ctx *aero.Context) string {
func Sequels(ctx aero.Context) error {
nick := ctx.Get("nick")
user := utils.GetUser(ctx)
viewUser, err := arn.GetUserByNick(nick)

View File

@ -13,7 +13,7 @@ import (
const minYear = 1963
// Get ...
func Get(ctx *aero.Context) string {
func Get(ctx aero.Context) error {
user := utils.GetUser(ctx)
maxYear := time.Now().Year() - 1
hallOfFameEntries := []*utils.HallOfFameEntry{}