mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 09:12:58 -07:00
Remove list(dict.items()) -- >dict.items()
This commit is contained in:
parent
2b0e7daf7c
commit
ad112e0a44
12 changed files with 38 additions and 38 deletions
|
@ -252,7 +252,7 @@ def update_labels():
|
|||
% section_id)
|
||||
|
||||
error_keys = set()
|
||||
for rating_key, labels in list(key_mappings.items()):
|
||||
for rating_key, labels in key_mappings.items():
|
||||
try:
|
||||
labels = ';'.join(labels)
|
||||
monitor_db.action('UPDATE session_history_metadata SET labels = ? '
|
||||
|
@ -586,7 +586,7 @@ class Libraries(object):
|
|||
if search_value:
|
||||
searchable_columns = [d['data'] for d in json_data['columns'] if d['searchable']] + ['title']
|
||||
for row in rows:
|
||||
for k,v in list(row.items()):
|
||||
for k,v in row.items():
|
||||
if k in searchable_columns and search_value in v.lower():
|
||||
results.append(row)
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue