fixed markOwnedNodesInNeo4j to have it compatible with 3.x neo4j databases

This commit is contained in:
mgeeky 2020-03-05 14:02:43 +01:00
parent a72a572a83
commit d74d7306fb

View File

@ -47,8 +47,9 @@ def markNodes(tx, nodes):
for i in range(len(nodes)): for i in range(len(nodes)):
n = nodes[i] n = nodes[i]
query += 'MATCH (n {name: "' + n + '"}) SET n.owned = TRUE ' query += 'MATCH (n {name: "' + n + '"}) SET n.owned=TRUE RETURN 1'
if i < len(nodes) - 1: query += 'UNION ' if i < len(nodes) - 1: query += ' UNION'
query += '\n'
tx.run(query) tx.run(query)