Cristobal299 commited on
Commit
9f255f9
·
verified ·
1 Parent(s): c39b33d

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ DATABASE = os.path.join(os.path.dirname(__file__), "tasks.db")
10
  def get_db():
11
  db = getattr(g, "_database", None)
12
  if db is None:
13
- db = g._database = sqlite3.connect(DATABASE)
14
  db.row_factory = sqlite3.Row
15
  return db
16
 
 
10
  def get_db():
11
  db = getattr(g, "_database", None)
12
  if db is None:
13
+ db = g._database = sqlite3.connect(DATABASE, check_same_thread=False)
14
  db.row_factory = sqlite3.Row
15
  return db
16