Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added method to generate unique variable names for specific pathes. #864

Merged
merged 6 commits into from
Mar 10, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix merge conflict issue
mariusconjeaud committed Mar 10, 2025
commit 4c7be9b97c6a0f3796fb6628966159d2bc7c433c
2 changes: 1 addition & 1 deletion neomodel/async_/match.py
Original file line number Diff line number Diff line change
@@ -623,7 +623,7 @@ def build_traversal_from_path(
else:
rhs_name = f"{rhs_label.lower()}_{rel_iterator}"
rhs_name = self.create_node_identifier(rhs_name, rel_iterator)
rhs_ident = f"{rhs_name}:{rhs_label}"
rhs_ident = f"{rhs_name}:{rhs_label}"

if relation["include_in_return"] and not already_present:
self._additional_return(rhs_name)
2 changes: 1 addition & 1 deletion neomodel/sync_/match.py
Original file line number Diff line number Diff line change
@@ -621,7 +621,7 @@ def build_traversal_from_path(
else:
rhs_name = f"{rhs_label.lower()}_{rel_iterator}"
rhs_name = self.create_node_identifier(rhs_name, rel_iterator)
rhs_ident = f"{rhs_name}:{rhs_label}"
rhs_ident = f"{rhs_name}:{rhs_label}"

if relation["include_in_return"] and not already_present:
self._additional_return(rhs_name)