summaryrefslogtreecommitdiff
path: root/src-py/db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-12-08 22:33:26 +0200
committerLV-426 <lv-426@taproot.org.il>2014-12-08 22:33:26 +0200
commit725f5a620ea241f7bca46b5e5f32786634a8e97c (patch)
treee26a7bf290836affb2123f83873f2cf329a54540 /src-py/db_controller.py
parent856535acb97baae1d34feb3b1bc3564e74314073 (diff)
DBO_rm_node_set: use query param id_set
Diffstat (limited to 'src-py/db_controller.py')
-rw-r--r--src-py/db_controller.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src-py/db_controller.py b/src-py/db_controller.py
index 8800222a..66bc5a47 100644
--- a/src-py/db_controller.py
+++ b/src-py/db_controller.py
@@ -340,18 +340,19 @@ class DBO_rm_node_set(DB_op):
if rm_links:
q_arr = ['match (n)',
- 'where n.id in ' + str(id_set),
+ 'where n.id in {id_set}',
'optional match (n)-[r]-()',
'delete n,r'
]
else:
q_arr = ['match (n)',
- 'where n.id in ' + str(id_set),
+ 'where n.id in {id_set}',
'delete n'
]
q = ' '.join(q_arr) # TODO: use id param upon neo4j support: q_params = {'id_set': id_set}
- self.add_statement(q)
+ q_params = {'id_set': id_set}
+ self.add_statement(q, q_params)
class DBO_rz_clone(DB_op):
def __init__(self, filter_label=None, limit=128):