# HG changeset patch # User Goffi # Date 1552145055 -3600 # Node ID a425c1ca51d0dbe490c0f2c36f0e42822e151c2e # Parent dbfedde9bc61babcd917a775cad10b1cea4b7b72 core (memory/sqlite): added a "timestamp_start" filter to retrieve history from a specific point in time diff -r dbfedde9bc61 -r a425c1ca51d0 sat/memory/sqlite.py --- a/sat/memory/sqlite.py Sat Mar 09 16:23:07 2019 +0100 +++ b/sat/memory/sqlite.py Sat Mar 09 16:24:15 2019 +0100 @@ -590,6 +590,9 @@ 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 ?")