Added prefetching

This commit is contained in:
Eduard Urbach 2017-10-28 04:54:24 +02:00
parent 76e5f37eca
commit 0bcab02262
2 changed files with 4 additions and 1 deletions

View File

@ -207,6 +207,9 @@ func configure(app *aero.Application) *aero.Application {
middleware.UserInfo(),
)
// Database
arn.DB.LoadCollections()
// API
arn.API.Install(app)

View File

@ -7,7 +7,7 @@ import (
)
func main() {
for anime := range arn.MustStreamAnime() {
for anime := range arn.StreamAnime() {
if anime.NSFW == 1 || anime.Status != "current" || anime.StartDate == "" || anime.StartDate < "2017-09" || anime.StartDate > "2017-10-17" {
continue
}