Skip to content

Commit

Permalink
Merge pull request #116 from fengsh27/main
Browse files Browse the repository at this point in the history
fix neo4j connecting issue
  • Loading branch information
slobentanzer authored Feb 5, 2024
2 parents 15f2a80 + e3bdbce commit f101609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion biochatter/database_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ def connect(self) -> None:
"""
db_name = self.connection_args.get("db_name")
uri = f"{self.connection_args.get('host')}:{self.connection_args.get('port')}"
uri = uri if uri.startswith("bolt://") else "bolt://" + uri
user = self.connection_args.get("user")
password = self.connection_args.get("password")
self.driver = nu.Driver(
db_name=db_name or "neo4j",
uri=uri,
db_uri=uri,
user=user,
password=password,
)
Expand Down

0 comments on commit f101609

Please sign in to comment.