8000 Fixed format_view to simply return the links · arangodb/python-arango@b9857ba · GitHub
[go: up one dir, main page]

Skip to content

Commit b9857ba

Browse files
committed
Fixed format_view to simply return the links
1 parent 1c7412b commit b9857ba

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

arango/formatter.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ def format_view_link(body: Json) -> Json:
794794
result["track_list_positions"] = body["trackListPositions"]
795795
if "storeValues" in body:
796796
result["store_values"] = body["storeValues"]
797+
if "primaryKeyCache" in body:
798+
result["primaryKeyCache"] = body["primaryKeyCache"]
799+
if "companies" in body:
800+
result["companies"] = body["companies"]
797801

798802
return verify_format(body, result)
799803

@@ -882,9 +886,7 @@ def format_view(body: Json) -> Json:
882886
if "writebufferSizeMax" in body:
883887
result["writebuffer_max_size"] = body["writebufferSizeMax"]
884888
if "links" in body:
885-
result["links"] = {
886-
name: format_view_link(link) for name, link in body["links"].items()
887-
}
889+
result["links"] = body["links"]
888890
if "indexes" in body:
889891
result["indexes"] = {
890892
name: format_view_index(idx) for name, idx in body["indexes"].items()

0 commit comments

Comments
 (0)
0