mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Filter search query by type
This commit is contained in:
parent
9b61ae44ab
commit
f8fe426f70
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ class UiWebsocketPlugin(object):
|
|||
search_like = "%" + search_text.replace(" ", "%") + "%"
|
||||
params.append(search_like)
|
||||
params.append(search_like)
|
||||
if filters.get("type") and filters["type"] not in query:
|
||||
continue
|
||||
|
||||
# Order
|
||||
db_query.parts["ORDER BY"] = "date_added DESC"
|
||||
|
|
Loading…
Reference in a new issue