Skip to content

Commit

Permalink
fix version mismatch for higher version
Browse files Browse the repository at this point in the history
  • Loading branch information
zhipwang committed Dec 17, 2024
1 parent 88d8d41 commit 5fbd844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pystellardb/graph_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 5fbd844

Please sign in to comment.