From 5412c1a1b2b31f9c37d0503b18810245803dcacf Mon Sep 17 00:00:00 2001 From: Oleg Matviichuk Date: Tue, 29 Jul 2025 23:15:28 +0200 Subject: [PATCH] Black+isort --- aiogram/fsm/storage/sqlite.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aiogram/fsm/storage/sqlite.py b/aiogram/fsm/storage/sqlite.py index c5da9917..d8bb0abe 100644 --- a/aiogram/fsm/storage/sqlite.py +++ b/aiogram/fsm/storage/sqlite.py @@ -1,6 +1,7 @@ -from aiosqlite import connect, Connection from typing import Any, Dict, Mapping, Optional, cast +from aiosqlite import Connection, connect + from aiogram.fsm.storage.base import ( BaseEventIsolation, BaseStorage, @@ -45,10 +46,12 @@ class SqliteStorage(BaseStorage): :return: an instance of :class:`MongoStorage` """ connection = await connect(db_filename) - await connection.execute(f'''CREATE TABLE IF NOT EXISTS aiogram_fsm ( + await connection.execute( + f"""CREATE TABLE IF NOT EXISTS aiogram_fsm ( id TEXT PRIMARY KEY, state BLOB, - data BLOB)''') + data BLOB)""" + ) await connection.commit() return cls(connection=connection) @@ -66,6 +69,3 @@ class SqliteStorage(BaseStorage): async def get_data(self, key: StorageKey) -> Dict[str, Any]: pass - - -