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.
|
The result of the edge addition operation, including relationship details.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
exists = await asyncio.gather(
|
exists = await asyncio.gather(self.has_node(str(from_node)), self.has_node(str(to_node)))
|
||||||
self.has_node(str(from_node)),
|
|
||||||
self.has_node(str(to_node))
|
|
||||||
)
|
|
||||||
|
|
||||||
if not all(exists):
|
if not all(exists):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
serialized_properties = self.serialize_properties(edge_properties or {})
|
serialized_properties = self.serialize_properties(edge_properties or {})
|
||||||
|
|
||||||
query = dedent(
|
query = dedent(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue