mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 17:22:56 -07:00
Run futurize --stage2
This commit is contained in:
parent
ab6196589b
commit
597cc9fe29
12 changed files with 30 additions and 30 deletions
|
@ -220,7 +220,7 @@ def update_labels():
|
|||
% section_id)
|
||||
|
||||
error_keys = set()
|
||||
for rating_key, labels in key_mappings.items():
|
||||
for rating_key, labels in list(key_mappings.items()):
|
||||
try:
|
||||
labels = ';'.join(labels)
|
||||
monitor_db.action('UPDATE session_history_metadata SET labels = ? '
|
||||
|
@ -547,7 +547,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 row.items():
|
||||
for k,v in list(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