core (memory/sqlite): added a "timestamp_start" filter to retrieve history from a specific point in time
This commit is contained in:
parent
d8eae5a05e
commit
8830a7c1d5
1 changed files with 3 additions and 0 deletions
|
|
@ -590,6 +590,9 @@ class SqliteStorage(object):
|
|||
order = False
|
||||
|
||||
if filters:
|
||||
if u'timestamp_start' in filters:
|
||||
query_parts.append(u"AND timestamp>= ?")
|
||||
values.append(int(filters[u'timestamp_start']))
|
||||
if u'body' in filters:
|
||||
# TODO: use REGEXP (function to be defined) instead of GLOB: https://www.sqlite.org/lang_expr.html
|
||||
query_parts.append(u"AND message LIKE ?")
|
||||
|
|
|
|||
Loading…
Reference in a new issue