Skip to content

Commit

Permalink
Fix bug with default region in part search
Browse files Browse the repository at this point in the history
  • Loading branch information
thefakequake committed Dec 27, 2024
1 parent bba421f commit 9349d78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pypartpicker/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def parse_part_list(self, res: Response) -> PartList:

def prepare_search_url(self, query: str, page: int, region: Optional[str] = "us"):
return (
self.__get_base_url(region)
self.__get_base_url("us" if region is None else region)
+ SEARCH_PATH
+ f"?q={urllib.parse.quote(query)}&page={page}"
)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pypartpicker"
version = "2.0.2"
version = "2.0.3"
description = "A PCPartPicker data extractor for Python."
authors = ["QuaKe"]
readme = "README.md"
Expand Down

0 comments on commit 9349d78

Please sign in to comment.