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

@ -6,7 +6,7 @@ import (
)
// Best characters.
func Best(ctx *aero.Context) string {
func Best(ctx aero.Context) error {
characters := fetchAll()
arn.SortCharactersByLikes(characters)

View File

@ -7,7 +7,7 @@ import (
)
// Latest characters.
func Latest(ctx *aero.Context) string {
func Latest(ctx aero.Context) error {
characters := fetchAll()
sort.Slice(characters, func(i, j int) bool {

View File

@ -14,7 +14,7 @@ const (
)
// render renders the characters page with the given characters.
func render(ctx *aero.Context, allCharacters []*arn.Character) string {
func render(ctx aero.Context, allCharacters []*arn.Character) error {
user := utils.GetUser(ctx)
index, _ := ctx.GetInt("index")
tag := ctx.Get("tag")