PyroFork: storage: sqlite: fix derps

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2023-06-25 23:41:21 +07:00
parent 69c49b91e3
commit fb5aff5e21
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 2 additions and 0 deletions

View file

@ -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):

View file

@ -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):