From 2e080bafa5b4d30361e73652c2b12f6d4cfb8705 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Mon, 6 Oct 2014 17:55:11 +0300 Subject: DBO_load_node_id_set: fix cypher query --- src-py/db_controller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- cgit v1.3.1