From 5eec400f20a7b63b6366a91bd8d7baa2580e0b95 Mon Sep 17 00:00:00 2001 From: smolkik-code Date: Wed, 17 Jun 2026 12:45:32 +0700 Subject: [PATCH] fix: SQLite check_same_thread=False for async usage --- instagram_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagram_monitor.py b/instagram_monitor.py index 7049e25..b5465e0 100644 --- a/instagram_monitor.py +++ b/instagram_monitor.py @@ -28,7 +28,7 @@ API_BASE = "https://i.instagram.com/api/v1" class Database: def __init__(self, db_path: Path) -> None: self._db_path = db_path - self._conn = sqlite3.connect(str(db_path)) + self._conn = sqlite3.connect(str(db_path), check_same_thread=False) self._conn.execute("PRAGMA journal_mode=WAL") self._init_db()