Fix neo4j

pull/31/head
Raphaël Vinot 2016-11-30 17:14:55 +01:00
parent 7b5b45146c
commit f956fd526e
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class Neo4j():
if not has_py2neo:
raise Exception('py2neo is required, please install: pip install py2neo')
authenticate(host, username, password)
self.graph = Graph()
self.graph = Graph("http://{}/db/data/".format(host))
def load_events_directory(self, directory):
self.events = []
@ -54,5 +54,5 @@ class Neo4j():
av = Relationship(attr_node, "is", val)
s = val | ev | av
tx.merge(s)
tx.graph.push(s)
#tx.graph.push(s)
tx.commit()