From 7084618d9cdf3bc9b6ce6a4fb56b7dafd3b3e0a4 Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Thu, 6 Apr 2023 03:11:40 +0300 Subject: [PATCH] update looking --- app/commands/service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/commands/service.py b/app/commands/service.py index 9c90f8f..81de3b5 100644 --- a/app/commands/service.py +++ b/app/commands/service.py @@ -152,10 +152,10 @@ def get_quotes(message: types.Message): quotes = session.query(Quote.text).filter(Quote.chat_id == message.chat.id).all() if quotes: - text = f"Количество цитат: {len(session.query(Quote).filter(Quote.chat_id == message.chat.id).all())}\n" - text += "Последние цитаты были\n\n" + text = f"Количество цитат: {len(session.query(Quote).filter(Quote.chat_id == message.chat.id).all())}\n" + text += "Последние добавленные\n\n" text += "\n".join(f"· {quote[0]}" for quote in quotes[-10:]) - bot.send_message(message.chat.id, f"{text}") + bot.send_message(message.chat.id, f"{text}") else: bot.send_message( message.chat.id, f"Цитаты отсутствуют. Подробнее: /get_group_info" @@ -173,7 +173,7 @@ def get_group_info(message: types.Message): ID: {message.chat.id} Количество цитат: {len(session.query(Quote).filter(Quote.chat_id == message.chat.id).all())} -Показать последние цитаты: /get_quotes +Последние добавленные: /get_quotes Текущие настройки: Антиспам: {session.query(Chat.antispam).filter(Chat.chat_id == message.chat.id).first()[0]}