From 70d6958137e1dbfcb5da2b05303c7b67cab905b8 Mon Sep 17 00:00:00 2001 From: Rykov7 Date: Thu, 6 Apr 2023 03:08:56 +0300 Subject: [PATCH] update looking --- app/commands/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/commands/service.py b/app/commands/service.py index eb68321..9c90f8f 100644 --- a/app/commands/service.py +++ b/app/commands/service.py @@ -152,7 +152,7 @@ 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())}" + 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}")