Skip to content
This repository was archived by the owner on Aug 22, 2023. It is now read-only.

Commit 1f016e4

Browse files
authored
Merge pull request #76 from C-Accel-CRIPT/patch_create_node
patching create node issue within the utils.py. Removing "can_edit" from API response
2 parents 81429b2 + d55c0a2 commit 1f016e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cript/data_model/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ def create_node(node_class, obj_json):
3838
created_at = obj_json.pop("created_at")
3939
updated_at = obj_json.pop("updated_at")
4040

41+
# pop unused key for Python SDK, but used in web SDK
42+
obj_json.pop("can_edit", None)
43+
4144
# Create node
4245
node = node_class(**obj_json)
4346

0 commit comments

Comments
 (0)