2024-04-29 12:32:58 -07:00
|
|
|
// Copyright (C) 2024 Pagefault Games - All Rights Reserved
|
|
|
|
// https://github.com/pagefaultgames
|
|
|
|
|
2024-04-14 17:03:53 -07:00
|
|
|
package daily
|
|
|
|
|
|
|
|
import (
|
|
|
|
"log"
|
|
|
|
|
2024-04-29 12:22:27 -07:00
|
|
|
"github.com/pagefaultgames/rogueserver/db"
|
2024-04-14 17:03:53 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
// /daily/rankingpagecount - fetch daily ranking page count
|
|
|
|
func RankingPageCount(category int) (int, error) {
|
|
|
|
pageCount, err := db.FetchRankingPageCount(category)
|
|
|
|
if err != nil {
|
|
|
|
log.Print("failed to retrieve ranking page count")
|
|
|
|
}
|
|
|
|
|
|
|
|
return pageCount, nil
|
|
|
|
}
|