mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
fixed typo
This commit is contained in:
parent
255e52bf45
commit
8cdbb05eaf
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ def cmd_search(bot: Bot, update: Update):
|
||||||
return
|
return
|
||||||
text = text.replace('%','\\%').replace('_','\_')
|
text = text.replace('%','\\%').replace('_','\_')
|
||||||
entries = session.query(db.Diario).filter(db.Diario.text.ilike('%'+text+'%')).all()
|
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]:
|
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"
|
messageText+=f"[#{entry.id}](https://ryg.steffo.eu/diario#entry-{entry.id}) di {entry.author}\n{entry.text}\n\n"
|
||||||
if len(entries)>5:
|
if len(entries)>5:
|
||||||
|
|
Loading…
Reference in a new issue