From fb5aff5e21efdb8384ee2c8447036e87d1500760 Mon Sep 17 00:00:00 2001 From: wulan17 Date: Sun, 25 Jun 2023 23:41:21 +0700 Subject: [PATCH] PyroFork: storage: sqlite: fix derps Signed-off-by: wulan17 --- pyrogram/storage/sqlite/cursor.py | 1 + pyrogram/storage/sqlite/sqlite.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyrogram/storage/sqlite/cursor.py b/pyrogram/storage/sqlite/cursor.py index dcd87adc..c9f2be34 100644 --- a/pyrogram/storage/sqlite/cursor.py +++ b/pyrogram/storage/sqlite/cursor.py @@ -4,6 +4,7 @@ from threading import Thread class AsyncCursor(Thread): def __init__(self, cursor: Cursor): + super().__init__() self.cursor = cursor async def fetchone(self): diff --git a/pyrogram/storage/sqlite/sqlite.py b/pyrogram/storage/sqlite/sqlite.py index e962732c..5943f2c4 100644 --- a/pyrogram/storage/sqlite/sqlite.py +++ b/pyrogram/storage/sqlite/sqlite.py @@ -7,6 +7,7 @@ from typing import Union class AsyncSqlite(Thread): def __init__(self, database: Union[str, Path], *args, **kwargs): + super().__init__() self.connection = sqlite3.connect(database, *args, **kwargs) async def commit(self):