File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
nisystemlink/clients/notebook Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ def update_notebook(
115115 """
116116 metadata_io = None
117117 if metadata is not None :
118- metadata_str = metadata .json ()
118+ metadata_str = metadata .json (by_alias = True , exclude_unset = True )
119119 metadata_io = io .BytesIO (metadata_str .encode ("utf-8" ))
120120
121121 return self .__update_notebook (
@@ -176,7 +176,7 @@ def create_notebook(
176176 ApiException: if unable to communicate with the ``/ninotebook`` service or provided invalid
177177 arguments.
178178 """
179- metadata_str = metadata .json ()
179+ metadata_str = metadata .json (by_alias = True , exclude_unset = True )
180180
181181 metadata_io = io .BytesIO (metadata_str .encode ("utf-8" ))
182182 return self .__create_notebook (
You can’t perform that action at this time.
0 commit comments