fix
This commit is contained in:
parent
356a76f5b4
commit
d893f7d23d
@ -46,6 +46,9 @@ func GetSteam250(url string) ([]*model.GameInfo, error) {
|
|||||||
var res []*model.GameInfo
|
var res []*model.GameInfo
|
||||||
count := 0
|
count := 0
|
||||||
for _, steamID := range steamIDs {
|
for _, steamID := range steamIDs {
|
||||||
|
if count >= 10 {
|
||||||
|
break
|
||||||
|
}
|
||||||
info, err := db.GetGameInfoByPlatformID("steam", steamID)
|
info, err := db.GetGameInfoByPlatformID("steam", steamID)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
res = append(res, info)
|
res = append(res, info)
|
||||||
|
Loading…
Reference in New Issue
Block a user