mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 13:23:24 -07:00
Fix SQLite quotes for history date filters
This commit is contained in:
parent
73cfa8e0c0
commit
dcdf5a2992
1 changed files with 3 additions and 3 deletions
|
@ -1997,15 +1997,15 @@ class WebInterface(object):
|
||||||
if 'start_date' in kwargs:
|
if 'start_date' in kwargs:
|
||||||
start_date = helpers.split_strip(kwargs.pop('start_date', ''))
|
start_date = helpers.split_strip(kwargs.pop('start_date', ''))
|
||||||
if start_date:
|
if start_date:
|
||||||
custom_where.append(['strftime("%Y-%m-%d", datetime(started, "unixepoch", "localtime"))', start_date])
|
custom_where.append(["strftime('%Y-%m-%d', datetime(started, 'unixepoch', 'localtime'))", start_date])
|
||||||
if 'before' in kwargs:
|
if 'before' in kwargs:
|
||||||
before = helpers.split_strip(kwargs.pop('before', ''))
|
before = helpers.split_strip(kwargs.pop('before', ''))
|
||||||
if before:
|
if before:
|
||||||
custom_where.append(['strftime("%Y-%m-%d", datetime(started, "unixepoch", "localtime")) <', before])
|
custom_where.append(["strftime('%Y-%m-%d', datetime(started, 'unixepoch', 'localtime')) <", before])
|
||||||
if 'after' in kwargs:
|
if 'after' in kwargs:
|
||||||
after = helpers.split_strip(kwargs.pop('after', ''))
|
after = helpers.split_strip(kwargs.pop('after', ''))
|
||||||
if after:
|
if after:
|
||||||
custom_where.append(['strftime("%Y-%m-%d", datetime(started, "unixepoch", "localtime")) >', after])
|
custom_where.append(["strftime('%Y-%m-%d', datetime(started, 'unixepoch', 'localtime')) >", after])
|
||||||
if 'reference_id' in kwargs:
|
if 'reference_id' in kwargs:
|
||||||
reference_id = helpers.split_strip(kwargs.pop('reference_id', ''))
|
reference_id = helpers.split_strip(kwargs.pop('reference_id', ''))
|
||||||
if reference_id:
|
if reference_id:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue