From 4701027950884f4ec492b38ed73917d282a7b4e3 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 7 Apr 2019 20:57:13 +0200 Subject: [PATCH] memory (sqlite): cast timestamp_start filter to float instead of int --- sat/memory/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/memory/sqlite.py b/sat/memory/sqlite.py index ebf90df7..d1345fb4 100644 --- a/sat/memory/sqlite.py +++ b/sat/memory/sqlite.py @@ -594,7 +594,7 @@ class SqliteStorage(object): if filters: if u'timestamp_start' in filters: query_parts.append(u"AND timestamp>= ?") - values.append(int(filters[u'timestamp_start'])) + values.append(float(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 ?")