Skip to content

Commit

Permalink
Rollback fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Conjeaud committed Jul 17, 2023
1 parent 2029913 commit bdff325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions neomodel/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def _additional_return(self, name):
if name not in self._ast[key] and name != self._ast.get("return"):
self._ast[key].append(name)

def build_traversal_from_path(self, path: dict, source_class) -> str:
path: str = path["path"]
def build_traversal_from_path(self, relation: dict, source_class) -> str:
path: str = relation["path"]
stmt: str = ""
source_class_iterator = source_class
for index, part in enumerate(path.split("__")):
Expand Down Expand Up @@ -443,7 +443,7 @@ def build_traversal_from_path(self, path: dict, source_class) -> str:
)
source_class_iterator = relationship.definition["node_class"]

if path.get("optional"):
if relation.get("optional"):
self._ast["optional match"].append(stmt)
else:
self._ast["match"].append(stmt)
Expand Down

0 comments on commit bdff325

Please sign in to comment.