Skip to content

Commit

Permalink
Fix neo4j
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Nov 30, 2016
1 parent 7b5b451 commit f956fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymisp/tools/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, host='localhost:7474', username='neo4j', password='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 = []
Expand Down Expand Up @@ -54,5 +54,5 @@ def import_event(self, event):
av = Relationship(attr_node, "is", val)
s = val | ev | av
tx.merge(s)
tx.graph.push(s)
#tx.graph.push(s)
tx.commit()

0 comments on commit f956fd5

Please sign in to comment.