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:
Jonathan Wong 2015-10-18 10:27:18 -07:00
commit 1ff58a85dc

View file

@ -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)