From 9cc1da14ff5bc228653308d2752e9ae9bcfdcd02 Mon Sep 17 00:00:00 2001 From: Whyverum Date: Tue, 17 Feb 2026 12:20:03 +0700 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=BA=D0=BE=D0=B4=D0=B5=20=D0=B8?= =?UTF-8?q?=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/handlers/commands/users/admins.py | 4 ++-- bot/handlers/commands/users/stats.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bot/handlers/commands/users/admins.py b/bot/handlers/commands/users/admins.py index 61cc8e3..46ffe95 100644 --- a/bot/handlers/commands/users/admins.py +++ b/bot/handlers/commands/users/admins.py @@ -271,7 +271,7 @@ async def list_admins_cmd(update: Message | CallbackQuery) -> None: # Владельцы (OWNER_ID) output += "👑 Владельцы бота (полные права):\n" for owner_id in settings.OWNER_ID: - output += f"├─ {owner_id}\n" + output += f'├─ {owner_id}\n' output += "\n" # Администраторы из БД @@ -279,7 +279,7 @@ async def list_admins_cmd(update: Message | CallbackQuery) -> None: output += f"⚙️ Администраторы ({len(db_admins)}):\n" for admin_id in sorted(db_admins): - output += f"├─ {admin_id}\n" + output += f'├─ {admin_id}\n' output += "\n" output += "📋 Права администраторов:\n" diff --git a/bot/handlers/commands/users/stats.py b/bot/handlers/commands/users/stats.py index cef5ddf..eaca9e7 100644 --- a/bot/handlers/commands/users/stats.py +++ b/bot/handlers/commands/users/stats.py @@ -187,7 +187,7 @@ async def stats_cmd(update: Message | CallbackQuery) -> None: for idx, (user_id, count) in enumerate(top_spammers, 1): bar = create_text_bar(count, max_count, length=8) - output += f"{idx}. {user_id} — {count} [{bar}]\n" + output += f'{idx}. {user_id} — {count} [{bar}]\n' output += "\n" else: @@ -365,7 +365,7 @@ async def stats_top_spammers_callback(callback: CallbackQuery) -> None: else: medal = f"{idx}." - output += f"{medal} {user_id}\n" + output += f'{medal} {user_id}\n' output += f" └─ {format_number(count)} удалений [{bar}]\n\n" # Общая статистика @@ -399,7 +399,7 @@ async def stats_top_spammers_callback(callback: CallbackQuery) -> None: # ================= ТОП СЛОВ ================= -@router.callback_query(F.data == "stats_top_words") +@router.callback_query(F.data == "stats:top_words") async def stats_top_words_callback(callback: CallbackQuery) -> None: """Показывает топ-10 самых частых срабатываний""" await callback.answer() @@ -501,7 +501,7 @@ async def user_stats_cmd(message: Message) -> None: user_spam_stats = await manager.get_spam_stats(limit=10, user_id=user_id) output = f"👤 СТАТИСТИКА ПОЛЬЗОВАТЕЛЯ\n\n" - output += f"🆔 ID: {user_id}\n\n" + output += f'🆔 ID: {user_id}\n\n' if user_spam_count > 0: output += f"🗑 Удалено сообщений: {format_number(user_spam_count)}\n\n"