mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Make collection titles searchable in table
This commit is contained in:
parent
72215a9f44
commit
0ba755e463
3 changed files with 9 additions and 4 deletions
|
@ -201,6 +201,8 @@ def get_collections_list(section_id=None, **kwargs):
|
|||
# Get datatables JSON data
|
||||
json_data = helpers.process_json_kwargs(json_kwargs=kwargs['json_data'])
|
||||
|
||||
search_cols = ['title']
|
||||
|
||||
sort_keys = {
|
||||
'collectionMode': {
|
||||
-1: 'Library Default',
|
||||
|
@ -215,7 +217,8 @@ def get_collections_list(section_id=None, **kwargs):
|
|||
}
|
||||
|
||||
results = helpers.process_datatable_rows(
|
||||
collections, json_data, default_sort='titleSort', sort_keys=sort_keys)
|
||||
collections, json_data, default_sort='titleSort',
|
||||
search_cols=search_cols, sort_keys=sort_keys)
|
||||
|
||||
data = {
|
||||
'recordsFiltered': results['filtered_count'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue