Skip to content

Commit c5fbe90

Browse files
fix arguments
1 parent 601dd25 commit c5fbe90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataikuapi/dss/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ def list_jupyter_notebooks(self, as_objects=True, active=False):
844844
notebooks = self.client._perform_json("GET", "/projects/%s/jupyter-notebooks/" % self.project_key,
845845
params={"active": active})
846846
if as_objects:
847-
return [DSSNotebook(self.client, notebook['projectKey'], notebook['name'], notebook) for notebook in notebooks]
847+
return [DSSNotebook(self.client, notebook['projectKey'], notebook['name'], content=notebook) for notebook in notebooks]
848848
else:
849849
return notebooks
850850

@@ -858,7 +858,7 @@ def get_jupyter_notebook(self, notebook_name):
858858
"""
859859
notebook_content = self.client._perform_json("GET",
860860
"/projects/%s/jupyter-notebooks/%s" % (self.project_key, notebook_name))
861-
return DSSNotebook(self.client, self.project_key, notebook_name, None, notebook_content)
861+
return DSSNotebook(self.client, self.project_key, notebook_name, content=notebook_content)
862862

863863
def create_jupyter_notebook(self, notebook_name, notebook_content):
864864
"""

0 commit comments

Comments
 (0)