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