Newsfeed: Add brackets around WHERE
This commit is contained in:
parent
c64e97f0d6
commit
818983831a
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class UiWebsocketPlugin(object):
|
|||
for name, query in feeds.iteritems():
|
||||
try:
|
||||
db_query = DbQuery(query)
|
||||
db_query.wheres.append("%s LIKE ? OR %s LIKE ?" % (db_query.fields["body"], db_query.fields["title"]))
|
||||
db_query.wheres.append("(%s LIKE ? OR %s LIKE ?)" % (db_query.fields["body"], db_query.fields["title"]))
|
||||
db_query.parts["ORDER BY"] = "date_added DESC"
|
||||
db_query.parts["LIMIT"] = "30"
|
||||
|
||||
|
|
Loading…
Reference in a new issue