From a107be656dfd8a12fdd75a2d04148331690cbf22 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 21 May 2026 01:07:02 +0000 Subject: [PATCH] Remove emoji from proxy stats button and headers https://claude.ai/code/session_01FPm8MMtV1EF5siCepRimNK --- bot/formatters.py | 4 ++-- bot/keyboards/admin.py | 2 +- tests/test_proxy_ui.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/formatters.py b/bot/formatters.py index cd4fcf4..24a668f 100644 --- a/bot/formatters.py +++ b/bot/formatters.py @@ -325,7 +325,7 @@ def proxy_access_text(accesses: list[ProxyAccess]) -> str: def user_proxy_stats_text(stats: ProxyUserStats) -> str: - lines = ["πŸ“Š Бтатистика прокси"] + lines = ["Бтатистика прокси"] if not stats.accesses: return "\n\n".join([lines[0], "Π£ вас ΠΏΠΎΠΊΠ° Π½Π΅Ρ‚ Π²Ρ‹Π΄Π°Π½Π½Ρ‹Ρ… прокси."]) @@ -365,7 +365,7 @@ def user_proxy_stats_text(stats: ProxyUserStats) -> str: def admin_proxy_stats_text(stats: ProxyAdminStats) -> str: lines = [ - "πŸ“Š Бтатистика прокси", + "Бтатистика прокси", "", "Aggregate summary", f"β€’ total proxy accesses: {h(stats.total_accesses)}", diff --git a/bot/keyboards/admin.py b/bot/keyboards/admin.py index 59eb3a0..869e2a8 100644 --- a/bot/keyboards/admin.py +++ b/bot/keyboards/admin.py @@ -46,7 +46,7 @@ def admin_panel_keyboard() -> InlineKeyboardMarkup: [InlineKeyboardButton(text="Бтатистика ΠΊΠ»ΡŽΡ‡Π΅ΠΉ", callback_data="admin:stats")], [InlineKeyboardButton(text="Бтатус прокси", callback_data="admin:proxy")], [InlineKeyboardButton(text="Диагностика backend", callback_data="admin:diagnostics")], - [InlineKeyboardButton(text="πŸ“Š Бтатистика прокси", callback_data="admin:proxy_stats")], + [InlineKeyboardButton(text="Бтатистика прокси", callback_data="admin:proxy_stats")], [InlineKeyboardButton(text="Π›ΠΎΠ³ΠΈ дСйствий", callback_data="admin:audit")], [InlineKeyboardButton(text="Π’Ρ‹Π΄Π°Ρ‚ΡŒ ΠΊΠ»ΡŽΡ‡ ΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŽ", callback_data="admin:issue")], [InlineKeyboardButton(text="ΠŸΡ€ΠΎΠ±Π½Ρ‹Π΅ доступы", callback_data="admin:trial")], diff --git a/tests/test_proxy_ui.py b/tests/test_proxy_ui.py index a01e0a1..f2aa16f 100644 --- a/tests/test_proxy_ui.py +++ b/tests/test_proxy_ui.py @@ -163,7 +163,7 @@ def test_proxy_keyboard_hides_disabled_or_already_issued_types() -> None: def test_admin_keyboard_has_proxy_stats_button() -> None: buttons = _buttons(admin_panel_keyboard()) - assert ("πŸ“Š Бтатистика прокси", "admin:proxy_stats") in buttons + assert ("Бтатистика прокси", "admin:proxy_stats") in buttons