Skip to content

Commit 229b3d6

Browse files
committed
fixed PR comments
1 parent 24abf0a commit 229b3d6

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

redisgraph/path.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ def __init__(self, nodes, edges):
1313
def new_empty_path(cls):
1414
return cls([], [])
1515

16-
@classmethod
17-
def new_path(cls, nodes, edges):
18-
return cls(nodes, edges)
19-
2016
def nodes(self):
2117
return self.nodes
2218

redisgraph/query_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def parse_edge(self, cell):
129129
def parse_path(self, cell):
130130
nodes = self.parse_scalar(cell[0])
131131
edges = self.parse_scalar(cell[1])
132-
return Path.new_path(nodes, edges)
132+
return Path(nodes, edges)
133133

134134
def parse_scalar(self, cell):
135135
scalar_type = int(cell[0])

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_path(self):
8181
redis_graph.add_edge(edge01)
8282
redis_graph.add_edge(edge12)
8383

84-
redis_graph.commit()
84+
redis_graph.flush()
8585

8686
path01 = Path.new_empty_path().add_node(node0).add_edge(edge01).add_node(node1)
8787
path12 = Path.new_empty_path().add_node(node1).add_edge(edge12).add_node(node2)

0 commit comments

Comments
 (0)