Add duration to history table footer

This commit is contained in:
Jonathan Wong 2015-12-13 09:36:54 -08:00
parent b51d442673
commit f9f65eae53
4 changed files with 50 additions and 13 deletions

View file

@ -617,7 +617,7 @@ class WebInterface(object):
if 'media_type' in kwargs:
media_type = kwargs.get('media_type', "")
if media_type != 'all':
custom_where.append(['session_history_metadata.media_type', media_type])
custom_where.append(['session_history.media_type', media_type])
data_factory = datafactory.DataFactory()
history = data_factory.get_history(kwargs=kwargs, custom_where=custom_where, grouping=grouping, watched_percent=watched_percent)