djkesu commited on
Commit
a4f441f
1 Parent(s): 142768e

added attribute conn

Browse files
Files changed (1) hide show
  1. app_utils/conf.py +3 -0
app_utils/conf.py CHANGED
@@ -13,6 +13,9 @@ class PersistentSettings(BaseModel):
13
  back any changes into the database, under its key.
14
  """
15
 
 
 
 
16
  def __init__(self, **data: Any):
17
  # Connect to the SQLite database
18
  self.conn = sqlite3.connect("config.db")
 
13
  back any changes into the database, under its key.
14
  """
15
 
16
+ class Config:
17
+ arbitrary_types_allowed = True # Exclude conn from Pydantic validation
18
+
19
  def __init__(self, **data: Any):
20
  # Connect to the SQLite database
21
  self.conn = sqlite3.connect("config.db")