This commit is contained in:
2025-04-05 03:30:18 +11:00
parent a0e24ca14b
commit 76a3e977ba
69 changed files with 637 additions and 0 deletions

View File

@@ -45,3 +45,12 @@ func (g *igdb) GetPlatformLogosByIDs(ids []uint64) ([]*pb.PlatformLogo, error) {
return g.GetPlatformLogos(idStr)
}
func (g *igdb) GetPlatformLogosLength() (int, error) {
query := `fields *; sort id desc; limit 1;`
platformLogos, err := g.GetPlatformLogos(query)
if err != nil {
return 0, err
}
return int(platformLogos[0].Id), nil
}