mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Fix bug in "Last Watched" statistics
*Fix if two users watched the same item, it would only show the most recent user.
This commit is contained in:
parent
5967636ef9
commit
1ff58a85dc
1 changed files with 1 additions and 1 deletions
|
@ -564,7 +564,7 @@ class DataFactory(object):
|
|||
'AND (session_history_metadata.media_type = "movie" ' \
|
||||
'OR session_history_metadata.media_type = "episode") ' \
|
||||
'AND percent_complete >= %s ' \
|
||||
'GROUP BY session_history_metadata.full_title ' \
|
||||
'GROUP BY session_history.id ' \
|
||||
'ORDER BY last_watch DESC ' \
|
||||
'LIMIT %s' % (time_range, notify_watched_percent, stats_count)
|
||||
result = monitor_db.select(query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue