fdsfds
This commit is contained in:
parent
c03094ef57
commit
4b1640ca3a
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ def searchcomments(v):
|
|||
|
||||
if 'q' in criteria:
|
||||
words=criteria['q'].split()
|
||||
words=[Comment.body.ilike('%'+x+'%') for x in words]
|
||||
words=[Comment.body_html.ilike('%'+x+'%') for x in words]
|
||||
words=tuple(words)
|
||||
comments=comments.filter(*words)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue