mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Run futurize --stage2
This commit is contained in:
parent
ab6196589b
commit
597cc9fe29
12 changed files with 30 additions and 30 deletions
|
@ -518,7 +518,7 @@ class Users(object):
|
|||
for item in result:
|
||||
# Rename Mystery platform names
|
||||
platform = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform'])
|
||||
platform_name = next((v for k, v in common.PLATFORM_NAMES.items() if k in platform.lower()), 'default')
|
||||
platform_name = next((v for k, v in list(common.PLATFORM_NAMES.items()) if k in platform.lower()), 'default')
|
||||
|
||||
row = {'player_name': item['player'],
|
||||
'platform': platform,
|
||||
|
@ -781,7 +781,7 @@ class Users(object):
|
|||
result = {}
|
||||
|
||||
filters_list = {}
|
||||
for k, v in result.items():
|
||||
for k, v in list(result.items()):
|
||||
filters = {}
|
||||
|
||||
for f in v.split('|'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue