We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76992aa commit 709d797Copy full SHA for 709d797
src/tcgdexsdk/endpoints/Endpoint.py
@@ -26,7 +26,7 @@ def __init__(self,
26
self.endpoint = endpoint
27
28
async def get(self, id: str) -> Optional[Item]:
29
- return fetch(self.tcgdex, f"https://api.tcgdex.net/v2/{self.tcgdex.language}/{self.endpoint}/{id}", self.item_model)
+ return fetch(self.tcgdex, f"https://api.tcgdex.net/v2/{self.tcgdex.language}/{self.endpoint}/{id.replace(' ', '%20')}", self.item_model)
30
31
async def list(self, query: Optional[Query] = None) -> List[ListModel]:
32
return fetch_list(self.tcgdex, f"https://api.tcgdex.net/v2/{self.tcgdex.language}/{self.endpoint}", self.list_model)
0 commit comments