diff --git a/aws_lambdas/game_updater/igdb/igdb_api.py b/aws_lambdas/game_updater/igdb/igdb_api.py index 2b98b2c..a65ca40 100644 --- a/aws_lambdas/game_updater/igdb/igdb_api.py +++ b/aws_lambdas/game_updater/igdb/igdb_api.py @@ -32,7 +32,7 @@ def wrapper(_input: Sequence[int], **kwargs): @cache def _get_token(): res = requests.post( - "https://id.twitch.tv/oauth2/token", + "https://id.twitch.tv/oauth2/token" f"?client_id={setting.IGDB_CLIENT_ID}&client_secret={setting.IGDB_CLIENT_SECRET}&grant_type=client_credentials", ) token = res.json()["access_token"] diff --git a/aws_lambdas/game_updater/scraper/alias.py b/aws_lambdas/game_updater/scraper/alias.py index deea9fa..a8f7804 100644 --- a/aws_lambdas/game_updater/scraper/alias.py +++ b/aws_lambdas/game_updater/scraper/alias.py @@ -6,7 +6,7 @@ def _scrap_igdb_game_ids(steam_ids: Sequence[int]) -> dict[int, int]: - steam_games = igdb_api.get_games_batch(steam_ids) + steam_games = igdb_api.get_steam_games_batch(steam_ids) return {int(g["uid"]): g["game"] for g in steam_games if "game" in g}