mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Update get_history query to use the new reference_id
This commit is contained in:
parent
c1b5514789
commit
881142d4a1
3 changed files with 57 additions and 106 deletions
|
@ -593,9 +593,9 @@ class WebInterface(object):
|
|||
if 'start_date' in kwargs:
|
||||
start_date = kwargs.get('start_date', "")
|
||||
custom_where = [['strftime("%Y-%m-%d", datetime(date, "unixepoch", "localtime"))', start_date]]
|
||||
if 'group_start_id' in kwargs:
|
||||
group_start_id = kwargs.get('group_start_id', "")
|
||||
custom_where = [['group_start_id', int(group_start_id)]]
|
||||
if 'reference_id' in kwargs:
|
||||
reference_id = kwargs.get('reference_id', "")
|
||||
custom_where = [['reference_id', reference_id]]
|
||||
|
||||
data_factory = datafactory.DataFactory()
|
||||
history = data_factory.get_history(kwargs=kwargs, custom_where=custom_where, grouping=grouping)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue