diff options
| -rw-r--r-- | src/server/neo4j_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/neo4j_util.py b/src/server/neo4j_util.py index 1f4ddd4e..b067e033 100644 --- a/src/server/neo4j_util.py +++ b/src/server/neo4j_util.py @@ -204,7 +204,7 @@ def gen_query_create_from_node_map(node_map, input_to_DB_property_map=lambda _: ret = [] for label, n_set in node_map.items(): - assert len(label) > 2 and label[0].isupper(), 'malformed label: ' + label + assert len(label) > 0 and label[0].isupper(), 'malformed label: ' + label q_arr = ['create (n:%s {node_attr})' % (quote__backtick(label)), 'with n', @@ -237,7 +237,7 @@ def gen_query_create_from_link_map(link_map, input_to_DB_property_map=lambda _: ret = [] for l_type, l_set in link_map.items(): - assert len(l_type) > 2 and l_type[0].isupper(), 'malformed label: ' + l_type + assert len(l_type) > 0 and l_type[0].isupper(), 'malformed label: ' + l_type q_arr = ['match (src {id: {src}.id}),(dst {id: {dst}.id})', 'create (src)-[r:%(__type)s {link_attr}]->(dst)' % {'__type': quote__backtick(l_type)}, |
