Minor cleanup

This commit is contained in:
Eduard Urbach 2018-03-14 18:10:21 +01:00
parent 19e9e3f958
commit 1a380f3139
2 changed files with 5 additions and 5 deletions

View File

@ -5,11 +5,6 @@ import (
"github.com/animenotifier/arn" "github.com/animenotifier/arn"
) )
const (
tracksFirstLoad = 12
tracksPerScroll = 3
)
// Latest renders the latest soundtracks. // Latest renders the latest soundtracks.
func Latest(ctx *aero.Context) string { func Latest(ctx *aero.Context) string {
// Fetch all eligible tracks // Fetch all eligible tracks

View File

@ -8,6 +8,11 @@ import (
"github.com/animenotifier/notify.moe/utils/infinitescroll" "github.com/animenotifier/notify.moe/utils/infinitescroll"
) )
const (
tracksFirstLoad = 12
tracksPerScroll = 3
)
// render renders the soundracks page with the given tracks. // 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) string {
user := utils.GetUser(ctx) user := utils.GetUser(ctx)