1
0

More games
Some checks failed
Test Python / Test (push) Failing after 29s

This commit is contained in:
Jon Michael Aanes 2024-08-25 23:12:33 +02:00
parent 28e18fc1b4
commit 51d49bf9f7
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -25,7 +25,7 @@ def game_psnprofiles_id_from_url(relative_url: str) -> int:
return int(result) return int(result)
MAX_GAME_ITERATIONS = 10 MAX_NUMBER_GAMES_TO_PARSE = 1000
@dataclasses.dataclass(frozen=True) @dataclasses.dataclass(frozen=True)
class PsnProfilesScraper(Scraper): class PsnProfilesScraper(Scraper):
@ -50,7 +50,7 @@ class PsnProfilesScraper(Scraper):
yield from self._scrape_game_trophies(game_id, game_name) yield from self._scrape_game_trophies(game_id, game_name)
del game_id del game_id
idx += 1 idx += 1
if idx >= MAX_GAME_ITERATIONS: if idx >= MAX_NUMBER_GAMES_TO_PARSE:
break break
def _setup_cache(self): def _setup_cache(self):