Skip to content

Commit

Permalink
test: fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-nguyen-cs committed Feb 1, 2024
1 parent 22d9ab7 commit 43e6a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/sample/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_session(uri=DEFAULT_URL):
def dump_nodes(session, file):
"""Dump all nodes from the database to a JSON file."""
node_count = session.run("MATCH (n) RETURN count(n)").single()[0]
for i, node in enumerate(session.run("MATCH (n) RETURN n")):
for i, node in enumerate(session.run("MATCH (n) RETURN n ORDER BY n.src_position")):
node_dict = dict(node["n"])
labels_list = list(node["n"].labels)
node_dict["labels"] = labels_list
Expand Down

0 comments on commit 43e6a43

Please sign in to comment.