mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
fixed idiotic bug
This commit is contained in:
parent
1a39415a8d
commit
255e52bf45
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ def cmd_search(bot: Bot, update: Update):
|
|||
text = update.message.text.split(" ", 1)[1]
|
||||
if text is None:
|
||||
return
|
||||
text = text.replace('%','\\%').replace('_','\_')
|
||||
text = text.replace('%','\\%').replace('_','\_')
|
||||
entries = session.query(db.Diario).filter(db.Diario.text.ilike('%'+text+'%')).all()
|
||||
messageText = "Ecco i risulati della ricerca:\n"
|
||||
for entry in entries[:5]:
|
||||
|
|
Loading…
Reference in a new issue