Refactor imports across multiple files to improve code organization and readability.
All checks were successful
CI pipeline / Test & Code Quality (push) Successful in 34s

This commit is contained in:
2026-02-28 23:24:25 +03:00
parent d0c8dab24a
commit 3d6b4353f9
78 changed files with 141 additions and 53 deletions

View File

@@ -67,16 +67,14 @@ async def main(db_path: str) -> None:
await conn.execute("PRAGMA foreign_keys = ON")
if not await table_exists(conn, "bot_settings"):
await conn.execute(
"""
await conn.execute("""
CREATE TABLE bot_settings (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
key TEXT NOT NULL UNIQUE,
value TEXT NOT NULL,
updated_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now'))
)
"""
)
""")
logger.info("Таблица bot_settings создана")
for key, value in DEFAULT_SETTINGS: