mirror of
https://github.com/mgeeky/Penetration-Testing-Tools.git
synced 2024-11-25 03:51:37 +01:00
fixed markOwnedNodesInNeo4j to have it compatible with 3.x neo4j databases
This commit is contained in:
parent
a72a572a83
commit
d74d7306fb
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user