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 renders the best soundtracks.
func Best(ctx *aero.Context) string {
func Best(ctx aero.Context) error {
// Fetch all eligible tracks
tracks := fetchAll()

View File

@ -6,7 +6,7 @@ import (
)
// Latest renders the latest soundtracks.
func Latest(ctx *aero.Context) string {
func Latest(ctx aero.Context) error {
// Fetch all eligible tracks
tracks := fetchAll()

View File

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

View File

@ -6,7 +6,7 @@ import (
)
// FilterByTag renders the best soundtracks filtered by tag.
func FilterByTag(ctx *aero.Context) string {
func FilterByTag(ctx aero.Context) error {
tag := ctx.Get("tag")
// Fetch all eligible tracks