Girish Jeswani commited on
Commit
ac9d735
·
1 Parent(s): 63da3a1

fix boolean error

Browse files
multi_llm_chatbot_backend/app/core/canvas_manager.py CHANGED
@@ -19,7 +19,7 @@ class CanvasManager:
19
 
20
  def get_database(self):
21
  """Lazy database connection to avoid circular imports"""
22
- if not self._db:
23
  # Import here to avoid circular import
24
  from app.core.database import get_database
25
  self._db = get_database()
 
19
 
20
  def get_database(self):
21
  """Lazy database connection to avoid circular imports"""
22
+ if self._db is None:
23
  # Import here to avoid circular import
24
  from app.core.database import get_database
25
  self._db = get_database()