diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-20 17:09:44 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-20 17:09:44 +0200 |
| commit | bf3e34d7835aa75c5ff4d131d327143e611c4066 (patch) | |
| tree | 9c60d6977037bfd1d2965f15af044c8be981cb27 | |
| parent | 3b3d3b5e91dac517627f1a080fffbff9a72b7e1a (diff) | |
fix missing ' ' in DBO_attr_diff_commit() query
| -rw-r--r-- | src-py/db_controller.py | 6 |
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, |
