Fix snapshot read path sqlite lock

This commit is contained in:
devRaGonSa
2026-03-24 11:55:47 +01:00
parent c7c9865075
commit e43e22dc0e
2 changed files with 14 additions and 6 deletions

View File

@@ -1570,8 +1570,10 @@ def list_monthly_mvp_ranking(
def _connect(db_path: Path) -> sqlite3.Connection:
connection = sqlite3.connect(db_path)
connection = sqlite3.connect(db_path, timeout=30.0)
connection.row_factory = sqlite3.Row
connection.execute("PRAGMA journal_mode=WAL")
connection.execute("PRAGMA busy_timeout = 30000")
return connection