Skip to content

Commit

Permalink
Merge pull request #16 from WarpCloud/fix_schema_version
Browse files Browse the repository at this point in the history
fix version mismatch for higher version
  • Loading branch information
zhipwang authored Dec 17, 2024
2 parents 88d8d41 + 5fbd844 commit edb05dd
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 edb05dd

Please sign in to comment.