mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 15:32:38 -07:00
Fix filtering history using guid
This commit is contained in:
parent
31a6c627af
commit
10a7f540ad
2 changed files with 8 additions and 2 deletions
|
@ -1720,8 +1720,8 @@ class WebInterface(object):
|
|||
year = kwargs.get('year', '')
|
||||
custom_where.append(['session_history_metadata.year', year])
|
||||
if 'guid' in kwargs:
|
||||
guid = kwargs.get('guid', '').split('?')[0] + '%' # SQLite LIKE wildcard
|
||||
custom_where.append(['session_history_metadata.guid', guid])
|
||||
guid = kwargs.get('guid', '').split('?')[0]
|
||||
custom_where.append(['session_history_metadata.guid', 'LIKE ' + guid + '%']) # SQLite LIKE wildcard
|
||||
|
||||
data_factory = datafactory.DataFactory()
|
||||
history = data_factory.get_datatables_history(kwargs=kwargs, custom_where=custom_where, grouping=grouping)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue