Skip to content

Commit

Permalink
Fix awaiting results for North America.
Browse files Browse the repository at this point in the history
  • Loading branch information
boralyl committed Jun 19, 2023
1 parent 7962244 commit dd0efab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/nintendo_wishlist/eshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,10 @@ async def _get_page(
query_params: str = f"{params}&page={page_num}"
queries[0]["params"] = query_params
data = await client.multiple_queries_async(queries)
games = [r for r in data["results"][0]["hits"]]
all_results = await data
games = [r for r in all_results["results"][0]["hits"]]
result["games"] = self.filter_wishlist_matches(games)
result["num_pages"] = data["results"][0]["nbPages"]
result["num_pages"] = all_results["results"][0]["nbPages"]
return result

async def fetch_na(self) -> dict[int, SwitchGame]:
Expand Down

0 comments on commit dd0efab

Please sign in to comment.