Skip to content

Commit

Permalink
fix(synthesizer): fetching the csv for a generated sample (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
portellaa authored Mar 26, 2024
1 parent ca1b324 commit e05e7b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ydata/sdk/common/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ def get_static_file(
Returns:
Response object
"""
from urllib.parse import urlparse
url_data = self.__build_url(endpoint, project=project)
url_data['url'] = f'{self._base_url}/static-content{endpoint}'
url_parse = urlparse(self._base_url)
url_data['url'] = f'{url_parse.scheme}://{url_parse.netloc}/static-content{endpoint}'
response = self._http_client.get(**url_data)

if response.status_code != Client.codes.OK and raise_for_status:
Expand Down

0 comments on commit e05e7b6

Please sign in to comment.