mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Use svg for platform and library icons
This commit is contained in:
parent
e28965f8b3
commit
b209c29749
83 changed files with 699 additions and 137 deletions
|
@ -452,10 +452,12 @@ class Users(object):
|
|||
|
||||
for item in result:
|
||||
# Rename Mystery platform names
|
||||
platform_type = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform'])
|
||||
platform = common.PLATFORM_NAME_OVERRIDES.get(item['platform'], item['platform'])
|
||||
platform_name = next((v for k, v in common.PLATFORM_NAMES.iteritems() if k in platform.lower()), 'default')
|
||||
|
||||
row = {'player_name': item['player'],
|
||||
'platform_type': platform_type,
|
||||
'platform': platform,
|
||||
'platform_name': platform_name,
|
||||
'total_plays': item['player_count'],
|
||||
'result_id': result_id
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue