Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Oct 28, 2023
1 parent f42396b commit 4797506
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/database/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,14 @@ class NEO_DB:

@classmethod
def instance(self):
if self.__instance is None:
if not self.__instance:
self.__instance = self.__new__(self)

config.DATABASE_URL = (
os.getenv("NEO4J_URL") or "neo4j://neo4j:password@localhost:7687"
)
else:
print("Neo singleton exists, returning")
return self.__instance

def __init__(sel):
Expand Down

0 comments on commit 4797506

Please sign in to comment.