|
|
@ -18,8 +18,6 @@
|
|
|
|
package daily
|
|
|
|
package daily
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/pagefaultgames/rogueserver/db"
|
|
|
|
"github.com/pagefaultgames/rogueserver/db"
|
|
|
|
"github.com/pagefaultgames/rogueserver/defs"
|
|
|
|
"github.com/pagefaultgames/rogueserver/defs"
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -28,7 +26,7 @@ import (
|
|
|
|
func Rankings(category, page int) ([]defs.DailyRanking, error) {
|
|
|
|
func Rankings(category, page int) ([]defs.DailyRanking, error) {
|
|
|
|
rankings, err := db.FetchRankings(category, page)
|
|
|
|
rankings, err := db.FetchRankings(category, page)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
log.Print("failed to retrieve rankings")
|
|
|
|
return rankings, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return rankings, nil
|
|
|
|
return rankings, nil
|
|
|
|