Another ambiguous column name fix

This commit is contained in:
Jonathan Wong 2015-09-16 13:40:47 -07:00
parent 626e7fdf82
commit 060c549259
2 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ class DataFactory(object):
SUM(CASE WHEN paused_counter IS NULL THEN 0 ELSE paused_counter END) AS duration',
'SUM(CASE WHEN paused_counter IS NULL THEN 0 ELSE paused_counter END) AS paused_counter',
'session_history.user_id',
'user',
'session_history.user',
'(CASE WHEN users.friendly_name IS NULL THEN user ELSE users.friendly_name END) as friendly_name',
'player',
'ip_address',

View file

@ -580,9 +580,9 @@ class WebInterface(object):
custom_where=[]
if user_id:
custom_where = [['user_id', user_id]]
custom_where = [['session_history.user_id', user_id]]
elif user:
custom_where = [['user', user]]
custom_where = [['session_history.user', user]]
if 'rating_key' in kwargs:
rating_key = kwargs.get('rating_key', "")
custom_where = [['session_history.rating_key', rating_key]]