Skip to content

Commit c1722b5

Browse files
committed
get_uploaded_file updated to reflect the fix in public api
1 parent 85c6ce6 commit c1722b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/wiki.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def upload_attachement(self, fp, filename):
237237

238238
self.client._perform_json("POST", "/projects/%s/wiki/%s/upload" % (self.project_key, dku_quote_fn(self.article_id)), files={"file":(clean_filename, fp)})
239239

240-
def get_uploaded_file(self, filename, upload_id):
240+
def get_uploaded_file(self, upload_id):
241241
""""
242242
Download the attachement of an article
243243
@@ -246,7 +246,7 @@ def get_uploaded_file(self, filename, upload_id):
246246
:returns: The requests.Response object
247247
:rtype: :class:`requests.Response`
248248
"""
249-
return self.client._perform_raw("GET", "/projects/%s/wiki/get-uploaded-file/%s?uploadId=%s" % (self.project_key, filename, upload_id))
249+
return self.client._perform_raw("GET", "/projects/%s/wiki/%s/upload/%s" % (self.project_key, self.article_id, upload_id))
250250

251251
def delete(self):
252252
"""

0 commit comments

Comments
 (0)