djkesu commited on
Commit
608a735
1 Parent(s): e302830

added sql conn attribute

Browse files
Files changed (1) hide show
  1. app_utils/conf.py +2 -0
app_utils/conf.py CHANGED
@@ -68,6 +68,8 @@ class TortoiseConfig(PersistentSettings):
68
  LOW_VRAM: bool = True
69
 
70
  def __init__(self, **data: Any):
 
 
71
  super().__init__(**data)
72
  if not Path(self.AR_CHECKPOINT).is_file():
73
  self.AR_CHECKPOINT = "."
 
68
  LOW_VRAM: bool = True
69
 
70
  def __init__(self, **data: Any):
71
+ # Initialize the database connection before calling super().__init__()
72
+ self.conn = sqlite3.connect("config.db")
73
  super().__init__(**data)
74
  if not Path(self.AR_CHECKPOINT).is_file():
75
  self.AR_CHECKPOINT = "."