From 5fbd844b143fc20bcae8bd9fc3ae015a121d3462 Mon Sep 17 00:00:00 2001 From: zhipwang Date: Tue, 17 Dec 2024 19:26:10 +0800 Subject: [PATCH] fix version mismatch for higher version --- pystellardb/graph_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pystellardb/graph_types.py b/pystellardb/graph_types.py index a665e3f..df8daa1 100644 --- a/pystellardb/graph_types.py +++ b/pystellardb/graph_types.py @@ -241,7 +241,7 @@ def parseEdgeFromDict(schema, m): if 'startKey' not in m: raise ValueError("Could not find start node entity key in JSON") - if schema.getVersion() == 18: + if schema.getVersion() >= 18: startUid = prop_dict['__srcuid'] startLabelIdx = Vertex.parseLabelIdxFromRKV18(m['startKey']) else: @@ -262,7 +262,7 @@ def parseEdgeFromDict(schema, m): if 'endKey' not in m: raise ValueError("Could not find end node entity key in JSON") - if schema.getVersion() == 18: + if schema.getVersion() >= 18: endUid = prop_dict['__dstuid'] endLabelIdx = Vertex.parseLabelIdxFromRKV18(m['endKey']) else: