adding servers for special groups/ ruff formatting

This commit is contained in:
Vladless
2025-10-11 01:27:10 +03:00
parent 7488eac897
commit 97b582d02e
13 changed files with 406 additions and 45 deletions
+3 -1
View File
@@ -56,11 +56,13 @@ async def handle_modules(callback_query: CallbackQuery, state: FSMContext, sessi
total_pages = max(1, (len(items) + per_page - 1) // per_page)
page = min(page, total_pages)
start = (page - 1) * per_page
chunk = items[start:start + per_page]
chunk = items[start : start + per_page]
if chunk:
def fmt(n, v):
return f"{n} v{v}" if v else n
lines = "\n".join(f"{fmt(n, v)}" for n, v in chunk)
text = f"🧩 Мои модули\n\nНайдено: {len(items)}\n<blockquote>{lines}</blockquote>"
else: