From b9857ba54e057d3d9b0964b71fc23f7601fa7f45 Mon Sep 17 00:00:00 2001 From: tjoubert Date: Tue, 13 Dec 2022 17:56:40 +0400 Subject: [PATCH] Fixed format_view to simply return the links --- arango/formatter.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arango/formatter.py b/arango/formatter.py index 1400ff0d..2801f6d0 100644 --- a/arango/formatter.py +++ b/arango/formatter.py @@ -794,6 +794,10 @@ def format_view_link(body: Json) -> Json: result["track_list_positions"] = body["trackListPositions"] if "storeValues" in body: result["store_values"] = body["storeValues"] + if "primaryKeyCache" in body: + result["primaryKeyCache"] = body["primaryKeyCache"] + if "companies" in body: + result["companies"] = body["companies"] return verify_format(body, result) @@ -882,9 +886,7 @@ def format_view(body: Json) -> Json: if "writebufferSizeMax" in body: result["writebuffer_max_size"] = body["writebufferSizeMax"] if "links" in body: - result["links"] = { - name: format_view_link(link) for name, link in body["links"].items() - } + result["links"] = body["links"] if "indexes" in body: result["indexes"] = { name: format_view_index(idx) for name, idx in body["indexes"].items()