mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Fix user duplicated in Library user stats
This commit is contained in:
parent
76db5ffa3a
commit
2459340c6f
1 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ class Libraries(object):
|
|||
'JOIN session_history_metadata ON session_history_metadata.id = session_history.id ' \
|
||||
'JOIN users ON users.user_id = session_history.user_id ' \
|
||||
'WHERE section_id = ? ' \
|
||||
'GROUP BY user ' \
|
||||
'GROUP BY users.user_id ' \
|
||||
'ORDER BY user_count DESC'
|
||||
result = monitor_db.select(query, args=[section_id])
|
||||
else:
|
||||
|
@ -834,4 +834,4 @@ class Libraries(object):
|
|||
else:
|
||||
return 'Unable to delete media info table cache, section_id not valid.'
|
||||
except Exception as e:
|
||||
logger.warn(u"PlexPy Libraries :: Unable to delete media info table cache: %s." % e)
|
||||
logger.warn(u"PlexPy Libraries :: Unable to delete media info table cache: %s." % e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue