mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Sort sessions by session_key
* Try to minimize instances jumping around under homepage current activity. * Still need to fix for music activity. Some clients have a different session_key per track.
This commit is contained in:
parent
05ba89f164
commit
3623732cf7
1 changed files with 2 additions and 0 deletions
|
@ -1021,6 +1021,8 @@ class PmsConnect(object):
|
|||
session_output = self.get_session_each(session_type, session_)
|
||||
session_list.append(session_output)
|
||||
|
||||
session_list = sorted(session_list, key=lambda k: k['session_key'])
|
||||
|
||||
output = {'stream_count': helpers.get_xml_attr(xml_head[0], 'size'),
|
||||
'sessions': session.mask_session_info(session_list)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue