Skip to content

Commit

Permalink
Update url when updating query
Browse files Browse the repository at this point in the history
  • Loading branch information
EvieePy committed Feb 10, 2024
1 parent 381598e commit 503e164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitchio/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ def build_url(cls, path: str, use_id: bool = False, params: dict[str, str] = {})

def update_query(self, params: dict[str, str]) -> str:
self.params.update(params)
self.build_url(self.path, use_id=self.use_id, params=self.params)
self._url = self.build_url(self.path, use_id=self.use_id, params=self.params)

return self._url

@property
def url(self) -> str:
return str(self._url)
return self._url

@classmethod
def build_query(cls, params: dict[str, str]) -> str:
Expand Down

0 comments on commit 503e164

Please sign in to comment.