Fix: fixes ruff
This commit is contained in:
parent
2d0f3e7f1f
commit
58bc710c43
1 changed files with 2 additions and 5 deletions
|
|
@ -377,14 +377,11 @@ class MemgraphAdapter(GraphDBInterface):
|
|||
The result of the edge addition operation, including relationship details.
|
||||
"""
|
||||
|
||||
exists = await asyncio.gather(
|
||||
self.has_node(str(from_node)),
|
||||
self.has_node(str(to_node))
|
||||
)
|
||||
exists = await asyncio.gather(self.has_node(str(from_node)), self.has_node(str(to_node)))
|
||||
|
||||
if not all(exists):
|
||||
return None
|
||||
|
||||
|
||||
serialized_properties = self.serialize_properties(edge_properties or {})
|
||||
|
||||
query = dedent(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue