summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-06 17:55:11 +0300
committerLV-426 <lv-426@taproot.org.il>2014-10-06 17:55:23 +0300
commit2e080bafa5b4d30361e73652c2b12f6d4cfb8705 (patch)
tree11b801c90181ea905fb4e7724fad259691c11288
parent8fa7ddf12eb814d649f74232a36bea23b91ffa3f (diff)
DBO_load_node_id_set: fix cypher query
-rw-r--r--src-py/db_controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src-py/db_controller.py b/src-py/db_controller.py
index 93e1c553..96b12079 100644
--- a/src-py/db_controller.py
+++ b/src-py/db_controller.py
@@ -102,6 +102,7 @@ class DBO_add_node_set(DB_op):
class DBO_load_node_id_set(DB_op):
def __init__(self, filter_type, filter_prop=None):
+ # TODO: mv type filter to DBO_load_node_set_by_attribute
"""
load node DB id set, filter by type / properties
"""
@@ -119,7 +120,7 @@ class DBO_load_node_id_set(DB_op):
filter_prop_arr.append("n.{0} = {1} and ".format(k, v_str))
filter_prop_str = " where " + " and ".join(filter_prop_arr)
- q = "match (n:{0}){1} return id(n)".format(filter_type, filter_prop_str)
+ q = "match (n:{0} {1}) return id(n)".format(filter_type, filter_prop_str)
self.add_statement(q)
def on_success(self, data):