summaryrefslogtreecommitdiff
path: root/src-py/db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-20 17:09:44 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-20 17:09:44 +0200
commitbf3e34d7835aa75c5ff4d131d327143e611c4066 (patch)
tree9c60d6977037bfd1d2965f15af044c8be981cb27 /src-py/db_controller.py
parent3b3d3b5e91dac517627f1a080fffbff9a72b7e1a (diff)
fix missing ' ' in DBO_attr_diff_commit() query
Diffstat (limited to 'src-py/db_controller.py')
-rw-r--r--src-py/db_controller.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-py/db_controller.py b/src-py/db_controller.py
index 2c18427c..64e9b5eb 100644
--- a/src-py/db_controller.py
+++ b/src-py/db_controller.py
@@ -138,9 +138,9 @@ class DBO_attr_diff_commit(DB_op):
# TODO parameterize multiple attr removal
rm_attr_set = n_attr_diff['attr_remove']
rm_attr_str = ', '.join(['n.' + attr for attr in rm_attr_set])
-
- q = ("match (n {id: {id}}) " +
- "set n += {attr_set}" +
+
+ q = ("match (n {id: {id}}) " +
+ "set n += {attr_set} " +
"remove " + rm_attr_str + " " +
"return n.id, n")
q_param_set = {'id': id_attr,