8000 Only set computedValues if value exists and is not None (#224) · arangodb/python-arango@745ad54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 745ad54

Browse files
authored
Only set computedValues if value exists and is not None (#224)
1 parent cfd2122 commit 745ad54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arango/formatter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def format_collection(body: Json) -> Json:
215215
result["schema"] = body["schema"]
216216

217217
# New in 3.10
218-
if "computedValues" in body:
218+
if body.get("computedValues") is not None:
219219
result["computedValues"] = [
220220
{
221221
"name": cv["name"],

0 commit comments

Comments
 (0)
0