Skip to content

Commit 7bcf6ab

Browse files
committed
release: v0.4.4
1 parent 8ee169e commit 7bcf6ab

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

datatorch/api/api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,12 @@ def upload_to_default_filesource(self, project: Project, file: IO, **kwargs):
143143
endpoint = f"{self.api_url}/file/v1/upload/{storageId}?path={pathToUploadTo}&import=false&datasetId="
144144
print(endpoint)
145145
# r = requests.post(endpoint, files={"file": file}, user=self.viewer)
146-
r = requests.post(endpoint, files={"file": file}, headers={self.token_header: self._api_token}, stream=True)
146+
r = requests.post(
147+
endpoint,
148+
files={"file": file},
149+
headers={self.token_header: self._api_token},
150+
stream=True,
151+
)
147152
print(r.text)
148153

149154
# def files(self, where: Where = None, limit: int = 400) -> List[File]:

datatorch/api/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ def to_class(self, Entity, results: Union[dict, list, None], path: str = ""):
134134
if type(results) == list:
135135
return list(map(lambda e: Entity(e, self), results))
136136

137-
return Entity(results, self)
137+
return Entity(results, self)

datatorch/api/entity/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,4 @@ def add(self, entity: AddableEntity):
179179
return
180180

181181
if isinstance(entity, Label):
182-
self.create
182+
self.create

0 commit comments

Comments
 (0)