From d893f7d23d11ab2b92d45d3297192280cac4a226 Mon Sep 17 00:00:00 2001 From: nite07 Date: Sat, 16 Nov 2024 18:05:49 +0800 Subject: [PATCH] fix --- crawler/steam250.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crawler/steam250.go b/crawler/steam250.go index 26788fd..9d4c10e 100644 --- a/crawler/steam250.go +++ b/crawler/steam250.go @@ -46,6 +46,9 @@ func GetSteam250(url string) ([]*model.GameInfo, error) { var res []*model.GameInfo count := 0 for _, steamID := range steamIDs { + if count >= 10 { + break + } info, err := db.GetGameInfoByPlatformID("steam", steamID) if err == nil { res = append(res, info)