From 8865303d0c9e610915b620adc1133ce46f040116 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 21 Jan 2025 19:57:54 -0800 Subject: [PATCH] Update modules/sqlite_local.py --- modules/sqlite_local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sqlite_local.py b/modules/sqlite_local.py index 74722a5..da337f8 100644 --- a/modules/sqlite_local.py +++ b/modules/sqlite_local.py @@ -8,7 +8,7 @@ class broker: if not os.path.isfile(data_path): print("Creating database file...") open(data_path, "w").write("") - self.conn = sqlite3.connect(data_path) + self.conn = sqlite3.connect(data_path, check_same_thread=False) self.fnet = Fernet(fernet_key) db = self.conn.cursor() db.execute("""CREATE table IF NOT EXISTS bans (ip varchar(255), reason varchar(255))""")