Allow sorting by number of comments

This commit is contained in:
Ivan Habunek 2021-09-13 20:19:56 +02:00 committed by Drew DeVault
parent 87ff71d4af
commit 5ee6052e48
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ def apply_search(query, search_string, current_user):
return apply_sort(query, sort_terms, {
"created": Ticket.created,
"updated": Ticket.updated,
"comments": Ticket.comment_count,
})
def find_usernames(query, limit=20):