Minor cleanup

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

View File

@ -0,0 +1,18 @@
package soundtracks
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
// Latest renders the latest soundtracks.
func Latest(ctx *aero.Context) string {
// Fetch all eligible tracks
tracks := fetchAll()
// Sort the tracks by date
arn.SortSoundTracksLatestFirst(tracks)
// Render
return render(ctx, tracks)
}