Skip to content

Commit

Permalink
Merge pull request #24 from kevinsunny1996/task/remove_id_check
Browse files Browse the repository at this point in the history
removed id check
  • Loading branch information
kevinsunny1996 authored May 13, 2024
2 parents b750045 + 4a20f0a commit 98f75b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dags/utils/rawg_api_caller.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_game_details_per_id(self, api_key: str, endpoint_ids: list, page_number:
info_logger.info(f'Fetched game related data for {game_id} for {endpoint} endpoint')

# If the API call is successful and returns response, then only do further processing
if response.status_code == 200 and response['id'] == game_id:
if response.status_code == 200:
# Convert to JSON and flatten the response
games_json = response.json()

Expand Down

0 comments on commit 98f75b8

Please sign in to comment.