core (memory/sqlite): added a "timestamp_start" filter to retrieve history from a specific point in time

This commit is contained in:
Goffi 2019-03-09 16:24:15 +01:00
commit 8830a7c1d5

View file

@ -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 ?")