From 8cdbb05eaf211f255670c068a5a03187c2ec762f Mon Sep 17 00:00:00 2001 From: Fabio De Simone Date: Mon, 28 Jan 2019 22:51:54 +0100 Subject: [PATCH] fixed typo --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index 0d377316..de173b76 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -300,7 +300,7 @@ def cmd_search(bot: Bot, update: Update): return text = text.replace('%','\\%').replace('_','\_') entries = session.query(db.Diario).filter(db.Diario.text.ilike('%'+text+'%')).all() - messageText = "Ecco i risulati della ricerca:\n" + messageText = "Ecco i risultati della ricerca:\n" for entry in entries[:5]: messageText+=f"[#{entry.id}](https://ryg.steffo.eu/diario#entry-{entry.id}) di {entry.author}\n{entry.text}\n\n" if len(entries)>5: