From 479750667bef539eb3a7e135d361cf277a17922f Mon Sep 17 00:00:00 2001 From: Spyros Date: Sat, 28 Oct 2023 14:18:51 +0100 Subject: [PATCH] logging --- application/database/db.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/database/db.py b/application/database/db.py index 36ca3fcbd..e83233714 100644 --- a/application/database/db.py +++ b/application/database/db.py @@ -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):