Skip to content

Commit e5ad31a

Browse files
mingen-panswilly22
authored andcommitted
id should be int not float as indicated by the above comment (#58)
1 parent 2d5a78d commit e5ad31a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

redisgraph/query_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ def parse_edge(self, cell):
119119
# dest node ID offset (integer),
120120
# [[name, value, value type] X N]
121121

122-
edge_id = float(cell[0])
122+
edge_id = int(cell[0])
123123
relation = self.graph.get_relation(cell[1])
124-
src_node_id = float(cell[2])
125-
dest_node_id = float(cell[3])
124+
src_node_id = int(cell[2])
125+
dest_node_id = int(cell[3])
126126
properties = self.parse_entity_properties(cell[4])
127127
return Edge(src_node_id, relation, dest_node_id, edge_id=edge_id, properties=properties)
128128

0 commit comments

Comments
 (0)