mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Fix "Mystery" platform in stats and activity
This commit is contained in:
parent
c12c72bbd6
commit
441572ea12
5 changed files with 30 additions and 9 deletions
|
@ -516,8 +516,14 @@ class Users(object):
|
|||
return None
|
||||
|
||||
for item in result:
|
||||
# Rename Mystery platform names
|
||||
platform_names = {'Mystery 3': 'Playstation 3',
|
||||
'Mystery 4': 'Playstation 4',
|
||||
'Mystery 5': 'Xbox 360'}
|
||||
platform_type = platform_names.get(item[2], item[2])
|
||||
|
||||
row = {'platform_name': item[0],
|
||||
'platform_type': item[2],
|
||||
'platform_type': platform_type,
|
||||
'total_plays': item[1],
|
||||
'result_id': result_id
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue